Component packs › Postmark › Postcard Flip
Drag it and it follows your hand, throw it and it keeps turning, bending against the turn and lifting off the table before it settles.
Postcard Flip is a card from Postmark, a component pack with 6 mail controls: Send buttons and forms made of paper, wax, stamps and ink. Price: $2 for the whole pack.
Built with: drag and throw rotation, bend from angular speed, moving contact shadow.
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 |
|---|---|---|---|
place | string | "Lisbon" | Place on the front. Default "Lisbon". |
caption | string | Small caption under the place name. | |
message | string | Message on the back (handwriting). | |
to | string[] | Address lines on the back. | |
back | boolean | Start showing the back. | |
onFlip | (showingBack: boolean) => void | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: turns itself over every N ms. |
readonly showingBack: booleanflip(): voiddestroy(): voidimport PostcardFlip from './PostcardFlip';
<PostcardFlip />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.