Vault
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldVault(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/input-vaultAbout 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