App UI kits › Vault › Passcode
Digits pop into their dots; a wrong code shakes with a decaying wobble and the right one folds the dots into a check.
Passcode is a screen from Vault, an app ui kit with 12 screens: A complete money app kit where every screen feels tactile. Price: $2 for the whole pack.
Built with: shake physics, dots-to-check morph, keyboard entry.
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 | (code: string) => boolean | accepts 1234 | Called with the code; return true to accept. Default accepts 1234. |
length | number | ||
name | string | ||
autoplay | boolean | Showcase mode: types a wrong code, then the right one. | |
onUnlock | () => void |
reset(): voiddestroy(): voidimport VaultPasscode from './VaultPasscode';
<VaultPasscode />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Banking and fintech app UI.