Seals
A scalloped seal, a starburst, a rosette with a ribbon hanging from it, a medal, a shield, a plate and a tag: one generator, eight shapes, any stationery color.
Rosettes, scalloped seals, medals, ringed seals with rim lettering and wax seals, drawn like the stickers without the white edge. Use one as a verified mark beside a name, an award on a card, or the stamp of approval on a certificate.
npx shadcn@latest add @wobko/seal第一次使用?先把 registry 加进 components.json。 如何安装
A scalloped seal, a starburst, a rosette with a ribbon hanging from it, a medal, a shield, a plate and a tag: one generator, eight shapes, any stationery color.
A hand-drawn check or star takes the place of the words (it survives at 16 px where letters do not). A ringed seal carries lettering round its rim. Wax takes an initial, a check or a star.
In ordinary UI: a verified mark beside a name at 20 px, a best-seller seal pinned to a card corner, and a certificate with a rosette, a ringed seal and a wax seal.
Intrinsic art: an svg whose size is its `size`, complete in server markup, named by its words. Made by the badge generator plus a ringed seal and wax; the pens, the solid fills and the grain are the sticker library's.
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| variant | "scallop" | "starburst" | "rosette" | "medal" | "shield" | "plate" | "ticket" | "tag" | "ring" | "wax" | "scallop" | The shape. Rosette and medal hang a ribbon; ring letters its rim; wax is a blob of sealing wax with an impression. |
| text | string | - | The words in the middle: about 6 letters at 64 px, 10 at 96 (one or two initials on wax). Capitals are set for you. |
| sub | string | - | A smaller second line (from 96 px up; dropped in the small redraw). Leave it off a rosette or a medal: their ribbons hang across that line. A ticket is one line (it has no room for a second and ignores `sub`). |
| mark | "check" | "star" | - | A hand-drawn glyph instead of the words. It holds at 16 px where letters do not, so it is what a verified badge should use. |
| tone | PaintKey | "bubblegum" (wax: "red") | The color: a stationery accent, or red, ink-you, green for wax. Ink on tomato and grape reaches 3.95:1: large text only. |
| ribbon | PaintKey | "tomato" | Color of the hanging ribbon of a rosette or a medal. |
| ring | string | - | Lettering all the way round the rim of a ring seal, repeated to close the circle (from 72 px up). |
| deco | "tick" | "star" | "sparkle" | "swoosh" | "percent" | - | The generator's small decoration (from 96 px up). |
| size | number | 96 | Pixels across. Below 80 the small redraw is used. |
| tilt | number | "auto" | 0 | Degrees, or a small seeded tilt. |
| tier | "lo" | "hi" | - | Drawing quality: the provider's (lo) by default; hi for hero art costs about three times the markup. |
| shadow | boolean | true | The soft drop shadow (a CSS filter). |
| label / decorative | string / boolean | - | Accessible name (default: the words, "Verified" for a check, "Award" for a star), or hide it when the text beside it says the same. |
| seed | string | number | - | Pins the hand. |
CLI 会复制进你项目的文件。
正在加载源码