Skip to content
RivetUI

Password Field

Collects a password with accessible visibility controls and Caps Lock feedback.

@rivetui/password-field

Preview

Explore each composition interactively, then open its code in the same context.

Default

Keep native password-manager behavior while providing an accessible visibility control.

Use the password for this workspace.

Initial visibility

The field can start hidden or visible without changing the submitted value.

Validation

The invalid state remains restrained until keyboard focus is visible.

Registry

Installation

Add the component source and its declared dependencies with the shadcn CLI.

Install component
bunx --bun shadcn@latest add @rivetui/password-field
Inspect registry item

Public interface

API reference

Component-specific props are listed here. Native element and Base UI props continue to pass through.

PropTypeDefault
visibleboolean—
defaultVisiblebooleanfalse
onVisibleChange(visible: boolean) => void—
showCapsLockIndicatorbooleantrue
showPasswordLabelstring"Show password"
hidePasswordLabelstring"Hide password"
capsLockLabelstring"Caps lock is on"
inputClassNamestring—
classNamestring—
Rivet UI / Password FieldComponents engineered, not decorated.