<PasswordInput>
<PasswordInput>
works like the <TextInput>
but overwrites its type
prop to password
or text
in accordance with a visibility button, hidden by default.
import { PasswordInput } from 'react-admin';
<PasswordInput source="password" />
It is possible to change the default behavior and display the value by default via the initiallyVisible
prop:
import { PasswordInput } from 'react-admin';
<PasswordInput source="password" initiallyVisible />
Tip: It is possible to set the autocomplete
attribute by injecting an input props:
<PasswordInput source="password" inputProps={{ autocomplete: 'current-password' }} />