Releases: viclafouch/mui-otp-input
Releases · viclafouch/mui-otp-input
v1.2.2
v1.2.1
v1.2.0
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}` }} />
v1.1.2
v1.1.1
- Update deps
v1.1.0
Features
- #6 Add prop to auto-focus the first field.
autoFocus
- Type:
boolean
- Default:
false
Choose to auto focus the first input.
<MuiOtpInput autoFocus />
Thanks @pdiazdumont