Component packs › Latch › Embossed Card
Digits emboss onto a 3D card as you type, the first digits change the card’s material, the card tilts toward the pointer with a moving sheen and flips over for the security code.
Embossed Card is a card form from Latch, a component pack with 8 components: Form and sign-in components that work like little mechanisms. Price: $2 for the whole pack.
Built with: 3D flip, network detection, cc-* autocomplete.
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 |
|---|---|---|---|
submitLabel | string | Button label. | |
theme | 'dark' | 'light' | ||
onChange | (v: CardValue) => void | ||
onSubmit | (v: CardValue) => void | ||
autoplay | boolean | Showcase mode: fills in a demo card until touched. |
readonly value: CardValuedestroy(): voidimport EmbossedCard from './EmbossedCard';
<EmbossedCard />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Form and sign-in components.