rio
rio copied to clipboard
`max_length` and `valid_inputs` Support for `rio.TextInput`
Description
Enhance the rio.TextInput
component by adding support for two new features: max_length
and valid_inputs
. These features will provide greater control over the input data by restricting the length of the text and the valid characters or patterns users can input.
Suggested Solution
max_length should be pretty self explanatory. Should work analogue to . Default should be None
valid_inputs should take a string or Iterable[str], preventing other symbols for being put in. default should be string.printable
Alternatives
No response
Additional Context
No response
Related Issues/Pull Requests
No response