Password field with an accessible show/hide toggle (aria-pressed), built on Input.

npx slipstream-ui@latest add password-input
Sign-in field

At least 12 characters

Props

PropTypeDefaultDescription
showLabelstring'Show password'Accessible label while hidden.
hideLabelstring'Hide password'Accessible label while visible.
…InputPropsInputProps—All Input props pass through (value, onChange, autoComplete…).

Accessibility

  • The toggle is a real button with aria-pressed and Show/Hide labels.
  • Revealing never moves focus away from the field.

Browser support

BrowserTested versions
Chrome111+ (Mar 2023)
Edge111+ (Mar 2023)
Firefox121+ (Dec 2023)
Safari17.2+ — macOS & iOS (Dec 2023)

Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.

Was this page helpful?