npx ui-thing@latest add input
Restrict the number of characters that can be entered into the input field.
No more than 5 characters
Restrict the type of characters that can be entered into the input field.
You don't need to use /
at the beginning and end of the pattern as the RegExp is being created internally with the new RegExp()
constructor.
No spaces can be entered