Concrete
form
Component

Password input

Text input composition with secure visibility toggling and field validation chrome.

Password input is the canonical pattern for slotting an inline icon action into a field without changing input semantics.

Use a passphrase or generated credential.
Playground

Props in the URL.

Controls update query params directly. Complex slots use curated fixtures so component states stay deterministic, linkable, and screenshot-ready.

Loading playground.
States

Rendered matrix.

Every state maps to the same component render route through the `state` query param.

Use a passphrase or generated credential.
Default

Hidden password with reveal action.

/render state
Password must be at least 12 characters.
Error

Validation error surfaced through Field.

/render state
Props

Public contract.

NameTypeDefaultDescription
valuestring-Controlled password value.
defaultValuestring-Uncontrolled initial password value.
visibleLabelstringShow passwordAccessible label for reveal action.
hiddenLabelstringHide passwordAccessible label for hide action.
labelReactNode-Field label.
helpReactNode-Muted helper text.
errorReactNode-Error copy and invalid treatment.