@viebel The input-text
component has a :validation-regex
argument where you can constrain the input to numeric chars. It still returns a string so you'd just need to convert it to a number before using it. Here are some sample regex's:
https://github.com/day8/re-com/blob/master/src/re_com/misc.cljs#L65
Yeah. But Iād like to have the arrows to allow user increase and decrease the number. Make sense?
is it possible / reasonable to nest r/with-let
inside a component? e.g.
(defn my-comp [args]
(r/with-let [something (work-with args)]
(when (seq something)
(r/with-let [second-thing (expensive-work something args)]
;; <use something and/or second-thing>
))))
Anyone know of a component library that provides a set of base components (buttons, etc) but without styles? I'd like to drop in some pre built components that already have good usable props/apis but add my own css.
i have an answer to the opposite question š https://bulma.io
Haha! Yea, I've actually used Bulma before. It's a nice css framework that looks decidedly non-bootstrap like, I recommend it. Would be nice to pair a case framework like that with a style-less component library. Though the more I think about it, such a library would be very bare bones since most of a component library has to do with presentation :/
yep, pretty much. i don't think what you're looking for exists, to be honest. look at the state of the html builtin form components for a reason why...