react-jsonschema-form
react-jsonschema-form copied to clipboard
html input maxlength minlength attributes
Prerequisites
- [X] I have read the documentation
What theme are you using?
core
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
i would like to have maxlength attribute to input type text to allow only certain values. like if max length is set to 10 . the input field will not take more than ten characters
Describe alternatives you've considered
No response
If you do something like the following it should work.
schema = {
type: "string"
}
uiSchema = {
"ui:options": {
maxLength: 10
}
}
<Form schema={schema} uiSchema={uiSchema} />
@sanjeev16011994 please open a new issue if the provided solution does not work. Thanks!