You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The input supports text and password as types, and there are many more that exist for the html input. We should consider supporting more of these types and start with a simple one like number.
The text was updated successfully, but these errors were encountered:
number sounds reasonable, but we should think of a clean line to draw with a clear abstraction that shows what and what is not support for Input since I am very much against support things like a calendar for pmndrs/uikit core.
A possible abstraction could be a filter property which excepts a Regex | (text: string) => boolean. So type="number" implicitly sets the filter property to only filter numbers.
I would not support properties that change the appearance of the Input. This could also mean to rename Input to TextInput and building NumberInput and PasswordInput using TextInput to clarify that Input does not support type="date" etc. What do you think?
The input supports
text
andpassword
as types, and there are many more that exist for the html input. We should consider supporting more of these types and start with a simple one like number.The text was updated successfully, but these errors were encountered: