Closed zhouzi closed 3 weeks ago
Curious to know what's the team's opinion on the matter:
I could probably help with solution 2.
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.
This issue should be kept open until the component becomes available or the team decides to not include it at all.
Feature description
The browser's
input[type=number]
is quite bad in terms of user experience.And implementing a proper one is not trivial.
It would be ideal for shadcn/ui to provide one.
Affected component/components
Input, Form
Additional Context
Radix doesn't have a number field yet, it's being tracked in this issue:
Other popular libraries do have it, for example:
React Aria's
NumberField
page is a great summary of all the intricacies and references the W3C's specs:I found a few standalone libraries, the most popular that's been updated recently is:
Other solutions are:
And here are a few issues referencing the number input's behavior with shadcn/ui:
Before submitting