reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
gregg 2020-08-15T00:24:16.176500Z

@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 Sharvit 2020-08-15T19:56:28.180700Z

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

robert-stuttaford 2020-08-15T08:05:15.178200Z

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

Casey 2020-08-15T11:50:34.179500Z

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-stuttaford 2020-08-15T14:05:50.179600Z

i have an answer to the opposite question šŸ™‚ https://bulma.io

Casey 2020-08-15T14:13:30.179900Z

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-stuttaford 2020-08-15T15:56:59.180400Z

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