npm mui-one-time-password-input 2.0.2
v2.0.2

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

Breaking change

TextFieldsProps is now : MuiTextFieldProps | ((index: number) => MuiTextFieldProps)

Now, you can add differents aria-label, aria-describeby, etc... depending on the index of the textfield in order to improve accessibility.

Example:

<MuiColorInput TextFieldsProps={{ size: 'small' }}  /> 
<MuiColorInput TextFieldsProps={index => ({ size: 'small', placeholder: String(index) })}  /> 

Chore

  • Update deps

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

NewReleases is sending notifications on new releases.