Interactive Playground
Every prop, wired live. Swap the leading icon, override the show/hide icons, and watch the code snippet update in real time.
Label & Position
Top
State
Icon & Toggle
Toggle Icons
Appearance & Identity
Small (sm)
Live Source Code
Basic Usage
Behaves like InputText, masking the value by default. Click the trailing eye icon to reveal it.
Template
Validation & States
The error prop transforms the input and intelligently maps over arrays to display multiple validation requirements, same as every other form element in the library.
Password must be at least 8 characters long.
Password must be at least 8 characters long.
Must contain at least one number.
Passwords do not match.
Template
Input Sizing
Five carefully calibrated sizes, matching every other form element in the library.
Template
Disabling the Toggle
Set :toggleable="false" for fields that should always stay masked, such as a one-time PIN re-entry.
Template