Password and PIN
ViraStack Mask and ViraStack Password together: the password is registered as is, the 6-digit PIN is masked, and both have show/hide.
Preview
Form value: -
Display: -
Use ViraStack Password for the show/hide toggle.
Details
- Passwords are not masked, which is why v1's password preset was removed. Show/hide is Password's job.
- The packages fit together: Password's inputProps holds attributes only (type, id, autoComplete, disabled, readOnly, aria), with no ref or handlers, so it spreads onto a masked input without conflicts: {...pin} {...inputProps}.
For the hook API see useViraMask(); for your own pattern see custom mask.