Fork me on GitHub
#reagent
<
2020-08-15
>
gregg00:08:16

@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

Yehonathan Sharvit19:08:28

Yeah. But I’d like to have the arrows to allow user increase and decrease the number. Make sense?

robert-stuttaford08:08:15

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>
        ))))

Casey11:08:34

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.

robert-stuttaford14:08:50

i have an answer to the opposite question 🙂 https://bulma.io

Casey14:08:30

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 :/

robert-stuttaford15:08:59

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...