npm mui-one-time-password-input 1.2.0
v1.2.0

latest releases: 7.0.0, 6.0.0, 5.0.0...
2 years ago

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}` }} />

Don't miss a new mui-one-time-password-input release

NewReleases is sending notifications on new releases.