App UI kits › Vault › Passcode

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.

Passcode props

PropTypeDefaultDescription
check(code: string) => booleanaccepts 1234Called with the code; return true to accept. Default accepts 1234.
lengthnumber
namestring
autoplaybooleanShowcase mode: types a wrong code, then the right one.
onUnlock() => void

Methods on the ref

Use it in React

import VaultPasscode from './VaultPasscode';

<VaultPasscode />

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

More in Vault

Good for: Banking and fintech app UI.