Component libraryPassword input
Password input
ProPassword visibility, strength and validation.
npx shadcn@latest add @tidal-pro/password-fieldInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/password-field.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Required visible label. Native controlled value/onChange or uncontrolled defaultValue, all native input attributes/ref, required, readOnly, disabled, id, className(input) and rootClassName supported; type is managed internally. Native current-password autocomplete by default; use new-password for creation. Optional description/error compose IDs with external aria-describedby; error sets aria-invalid and role=alert. Visibility is internally managed by default or controlled with revealed/onRevealedChange; controlled visibility without a callback disables toggle. Localizable showLabel/hideLabel. Native 44px toggle has aria-pressed/controls and supports Enter/Space; pointer reveal preserves active input selection/focus, keyboard reveal retains toggle focus, disabled disables both controls, readOnly still allows visibility changes. Requirements are an optional caller-evaluated array of stable id/label/met; count and progressbar derive only from met values, no strength rating or security guarantee. Localizable requirementsLabel/formatRequirementCount. Checklist exposes Met/Not met text; no per-keystroke live announcements. Persistent rail, drawn checks/slash, finite reveal veil and focus icon motion honor reduced motion. No duplicated password text, collection, storage, submission or wrapper form is introduced. Consumers own policy evaluation, authentication, validation and request handling.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.