Postage Stamp

New

Postage stamp with a perforated edge drawn in SVG, a printed value and country, and an optional postmark inked across the corner. Press it to lift it off the envelope.

Preview

Installation

npx @lumioui/cli add postage-stamp

Usage

import { perforatedPath, PostageStamp } from "@/components/ui/postage-stamp/postage-stamp";
<PostageStamp />

Also exported: perforatedPath.

API reference

Prop Type Default
className string —
image ImageSourcePropType

Art printed in the panel.

—
children React.ReactNode

Any content in place of an image (an illustration, a glyph on colour).

—
value string

Face value printed on the margin, e.g. "€1.20".

—
country string

Issuing country printed on the margin.

—
postmark string

Postmark text inked over the top-right corner, e.g. "LISBOA · 12 OCT".

—
width number

Stamp width in points. Default 112.

112
aspectRatio number

Width / height. Default 0.8 (portrait).

0.8
perforation number

Radius of the perforation bites. Default 3.5.

3.5
tilt number

Resting tilt in degrees. Default -3.

-3
haptic boolean

Selection haptic as it lifts. Default true.

true
disabled boolean —
accessibilityLabel string —