rio icon indicating copy to clipboard operation
rio copied to clipboard

`max_length` and `valid_inputs` Support for `rio.TextInput`

Open Sn3llius opened this issue 5 months ago • 1 comments

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

Sn3llius avatar Sep 04 '24 18:09 Sn3llius