Stamp
A postage stamp: round bites out of all four edges.
25
POSTAGE
Customize
Installation
Stamp is a recipe: a few layers of edge-frame put together, not a component of its own. Install edge-frame, then copy the code from the preview above.
npx shadcn@latest add https://fancyborders.vercel.app/r/edge-frame.jsonThe CLI copies the component into your project, adds anything it is built on, and writes its CSS into your global stylesheet. New to the CLI? See Installation.
API reference
EdgeFrame
import { EdgeFrame } from "@/components/edge-frame";| Prop | Type | Default |
|---|---|---|
| edge | "zigzag" | "wave" | "scallop" | "bite"The pattern cut into the edges: zigzag teeth, a wave, a scallop of round bumps, or round bites like the edge of a stamp. | "zigzag" |
| sides | ("top" | "right" | "bottom" | "left")[]Which edges get the pattern. | top and bottom |
| size | numberLength of one tooth, wave or bump, in pixels. Each edge fits a whole number of them, so the real length is the closest that divides it. | 16 |
| depth | numberHow far the pattern reaches in from the edge, in pixels. | 8 |
Also accepts line, fill, color and every div attribute.