Component packs › Paper › Curl Card
Drag the corner and the card folds along a real fold line, showing its actual back; let go past halfway and it turns over.
Curl Card is a card from Paper, a component pack with 7 components: Components that behave like real paper. Price: $2 for the whole pack.
Built with: true fold geometry, mirrored back face, spring turn.
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 |
|---|---|---|---|
front | CurlFace | ||
back | CurlFace & { rows?: [string, string][]; action?: string } | ||
autoplay | boolean | Showcase mode: peeks and turns by itself until touched. | |
onFlip | (side: 'front' | 'back') => void | ||
onAction | () => void |
flip(side?: 'front' | 'back'): voiddestroy(): voidimport CurlCard from './CurlCard';
<CurlCard />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Micro-interactions.