Component packs › Vouch › Password Rules
Every password rule is a latch on its own row that clicks shut as you type; the padlock opens when all five are met.
Password Rules is a password from Vouch, a component pack with 6 validation components: Form validation where every rule is a latch that clicks shut. Price: $2 for the whole pack.
Built with: latch per rule, show and hide, live rule count.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
rules | PasswordRule[] | ||
submitLabel | string | ||
onSubmit | (password: string) => void | ||
autoplay | number | false | Showcase mode: types a password by itself every N ms while visible. |
readonly valid: booleandestroy(): voidimport PasswordRules from './PasswordRules';
<PasswordRules />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Form validation.