Presets
Ink pressed through a worn pad: about 86 percent of it survives, patches are missed, the border wobbles and the whole stamp tilts a few degrees.
A rubber stamp: solid ink pressed through a worn pad, double-rule border, typewriter capitals, a slight tilt and sometimes the ghost of a first impression. For APPROVED, PAID, DRAFT and friends.
npx shadcn@latest add @wobko/stamp第一次使用?先把 registry 加进 components.json。 如何安装
Ink pressed through a worn pad: about 86 percent of it survives, patches are missed, the border wobbles and the whole stamp tilts a few degrees.
A box, a ring with rim text, a twelve-point seal, and big diagonal letters. Pad inks are red, blue felt, green or ink, never a stationery accent.
Stamps go on top of real content and never block it: the svg ignores the pointer and keeps its own name for screen readers.
An intrinsic ink svg in one color of pad ink, drawn through the baked `stamp` wear mask.
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| name | string | - | A preset from the sticker sheet: `stamp-approved`, `stamp-draft`, `stamp-paid`, `stamp-urgent`, `stamp-received`, `stamp-void`, `stamp-new`, `stamp-member`. Other props override it. |
| text | string | - | The main word (capitals are set for you). |
| shape | "rect" | "round" | "burst" | "void" | "rect" | Double-rule box, double ring with rim text, twelve-point seal, or big diagonal letters struck through. |
| ink | "red" | "ink-you" | "green" | "ink" | "red" | Pad ink. Never a stationery accent. |
| sub | string | - | A smaller second line (a date, `issue`). |
| ring | string | - | Text around the rim of a round stamp. |
| w / h / size | number | - | Box in px; `size` is the diameter of round and burst stamps. |
| tilt | number | - | Degrees; default a seeded -5 to 5. |
| ghost | boolean | - | A faint first impression under the main one. |
| dashed | boolean | - | Dashed inner rule instead of a solid one. |
| seed | string | number | - | Wear, wobble and the patches where the pad missed. |
| label | string | - | Accessible name (default: the stamp's text). |
CLI 会复制进你项目的文件。
正在加载源码