Default
96 px: line-led, one marker fill that misses the outline, a light pencil shading in the lower right.
Margin doodles: a star, a sun, a flower, a mushroom. Line-led, with one flat fill in register. Use them in the decoration layer, on empty states and in corners of cards.
npx shadcn@latest add @wobko/doodle第一次使用?先把 registry 加进 components.json。 如何安装
96 px: line-led, one marker fill that misses the outline, a light pencil shading in the lower right.
Below 72 px a doodle switches to its 48 px drawing: the silhouette and one identifying detail, drawn with a heavier line.
Doodles live in the decoration layer: turned a few degrees, tucked in the corner of a card, next to a title.
Grows by itself as the doodle batches land.
An intrinsic ink svg drawn from a skeleton at the size you ask for, redrawn (not scaled) below 72 px.
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| name | DoodleName | string | - | A doodle id (`star`, `sun`, `flower`, `mushroom`...). |
| size | number | 96 | Pixels. Below 72 the 48 px redraw (silhouette and one detail, heavier line), from 72 the 96 px master, from 128 the hero tier. |
| accent | Accent | "hi" | "kraft" | - | Color of the accent washes, for doodles that have them. |
| seed | string | number | - | Another seed, another hand. |
| rotate | number | - | Degrees. Corner flourishes are drawn for the top-left and turned by you. |
| flip | boolean | - | Mirror horizontally (CSS). |
| label | string | - | Accessible name. Decorative (`aria-hidden`) without it. |
CLI 会复制进你项目的文件。
正在加载源码