Component packs › Vouch › Username Check

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.

Username Check props

PropTypeDefaultDescription
check(name: string) => Promise<boolean>a simulated checkResolves true when the name is free. Default: a simulated check.
valuestring
onChange(name: string, free: boolean) => void
autoplaynumber | falseShowcase mode: tries names by itself every N ms while visible.

Methods on the ref

Use it in React

import UsernameCheck from './UsernameCheck';

<UsernameCheck />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Vouch

Good for: Form validation.