Component packs › Vouch › Username Check
The latch jiggles while availability is checked, then snaps shut on a free name or springs open with one-tap free alternatives.
Username Check is an input 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: jiggle while checking, async check, suggestion chips.
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 |
|---|---|---|---|
check | (name: string) => Promise<boolean> | a simulated check | Resolves true when the name is free. Default: a simulated check. |
value | string | ||
onChange | (name: string, free: boolean) => void | ||
autoplay | number | false | Showcase mode: tries names by itself every N ms while visible. |
readonly value: stringreadonly free: booleandestroy(): voidimport UsernameCheck from './UsernameCheck';
<UsernameCheck />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Form validation.