Skip to content
Forms

PasswordReveal

A password field whose eye button flips the dots into letters one by one. It stays a real password input the rest of the time, so password managers keep working.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
labelstring—Field name above the box.
hintstring—Small help text under the field.
errorstring—Error text. Turns the field red and sets aria-invalid.
accentstring"#a78bfa"Focus border and eye button colour.
autoCompletestring"current-password"Use "new-password" on sign-up forms.
classNamestring"w-full max-w-sm"Wrapper look.
...restinput props—value, onChange, name, required and so on go to the input.