Password with ability to toggle mask via a method and a unmasked property #5135
Labels
Type: New Feature
Issue contains a new feature or new component request
Milestone
Describe the feature you would like to see added
Add it so you could then control the mask outside with a ref like:
passwordRef.current?.toggleMask();
and with a property like:
const [unmasked, setUnmasked] = useState(false);
<Password unmasked={unmasked} />
Much the way the disabled property works on Input components.
Is your feature request related to a problem?
There is no good way to programmatically control the masked/unmasked state of the Password component.
Describe the solution you'd like
A method to toggleMask from a ref to a Password component and an unmasked property that sets the state.
Describe alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: