Customization
Icons, text, styling, and locked states: fit your design system with the headless API.
Icons & text
The icons field accepts ReactNode: SVG, components, or plain text. show renders when the password is hidden; hide when visible.
Text example:
Default icons can also be imported from the helpers page. More examples: custom icons, custom text.
inputProps & btnProps
name, autoComplete, className, and extra handlers merge through options:
Merge rules are on the useViraPassword() page. Example: Prop merge.
disabled & readOnly
In both cases visibility cannot change: the button is disabled, and toggle / setVisible are no-ops.
disabled: toggle locked
