Feat
- Drop support for React 17. Version 18.0.0 is the minimal version required.
New property for TextFieldsProps object :
placeholder
- Type:
string|undefined|(index: number) => string | undefined - Default:
undefined
Unlike the normal type of a TextField, here you can manage a distinct placeholder for each field.
<MuiOtpInput TextFieldsProps={{ placeholder: '-' }} />
<MuiOtpInput TextFieldsProps={{ placeholder: (index) => `i-${index}` }} />