All components

Password Input

Password fields with a show/hide toggle, built on the input styles in every variant and size.

Variants

outline
subtle
flushed

Sizes

xs
sm
md
lg
xl

Strength meter

Pair the field with a Meter that scores the password and switches palette by level.

x
Strength: Strong

Invalid and disabled

Root flags reach every part: the input turns the error colour, the toggle disables with the field.

Install

Source

components/ui/base-ui/password-input.tsx