Loading preview
Animated Card
CardsA card that tilts in 3D toward the pointer with spring physics.
A perforated stamp with a photo that takes a postmark when you press it.
npx shadcn@latest add @venusui/postage-stampRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/postage-stamp.tsxThe code behind the preview above.
postage-stamp-demo.tsx
import { PostageStamp } from "@/components/ui/postage-stamp"
// Photos: Unsplash (free under the Unsplash License).
const photo = (id: string) => `https://images.unsplash.com/photo-${id}?w=420&h=525&fit=crop&auto=format&q=75`
export default function PostageStampDemo() {
return (
<PostageStamp
src={photo("1523906834658-6e24ef2386f9")}
alt="The Rialto Bridge over the Grand Canal"
title="Venice"
country="Italy"
value="€1.30"
postmark={{ place: "Venezia", date: "27 JUN 26" }}
/>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| src, alt | string | — | The photo. |
| title, country | string | — | Printed on the stamp. |
| value | string | — | Face value. |
| postmark | { place: string; date: string } | — | Text in the postmark. |
| cancelled | boolean | — | Controlled postmark state. |
| defaultCancelled | boolean | false | Start postmarked. |
| onCancelledChange | (cancelled: boolean) => void | — | Called when pressed. |
All <button> props; className sets the width.
Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A card that tilts in 3D toward the pointer with spring physics.
A flight boarding pass with a perforated stub and code that flips to the fare and baggage details.
Stacked cards with the next ones peeking out; Next sends the top card to the back.