Vault

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-vault

About this component

A password field in black and gold with a strength meter: four bars along its foot fill one by one, from ruby to amber to gold to emerald, as the password gets stronger. The padlock snaps shut once it is good, and the eye shows or hides what you typed.

Triggers

  • Focus
  • State change
  • Fill
  • Icon swap
  • Spring

Techniques

  • CSS variables
  • CSS transition
  • Transition delay stagger
  • stroke-dashoffset
  • SVG
  • Pseudo elements

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native password input named by aria-label ("Password") and a real button ("Show password") that carries aria-pressed; both have a :focus-visible outline. The strength is announced as a word (Weak, Fair, Good, Strong) in a visually hidden role="status" element, so it is never colour alone.

Reduced motion

Every transition and animation is switched off.

Use it in anything you build, commercial and client work included. Licence

More inputs

See all
VitroGet code
WashGet code
Y2KGet code
CleaveGet code