Fork me on GitHub
#re-frame
<
2022-06-29
>
steveb8n03:06:56

Q: how do re-com forms render a number input? is slider the only option or is there an input type I have missed?

superstructor20:06:56

I think something that literally renders as <input type=number/> is missing but it would be easy to create by basing on the existing text input. If you just want numbers-only without the side up/down buttons you could also use a text input with a number regex to filter the allowed chars.

steveb8n05:06:48

Thanks. yeah I suspected as much. I’ll create a input type as you suggest and will copy enough css classes to make it look right