Default
Typeset on the left, written on the right: the same words, the same size.
Text that looks written, not typeset: every word sits a hair off the baseline and a touch lighter, by a seeded amount. The words stay real inline text; code, links and forms inside are left exactly as typed.
npx shadcn@latest add @wobko/handwritten第一次使用?先把 registry 加进 components.json。 如何安装
Typeset on the left, written on the right: the same words, the same size.
0.5, 1 and 2. Code, keys and links inside are never touched; data-handwritten="off" opts anything else out.
Handwritten inside a sticky note: the sheet turns a little, the words only jitter.
Any element (`as`, a span by default) whose text nodes are split into word spans carrying `--jy` / `--jr` / `--jo`. The component turns them into a relative offset from the baseline and a lighter ink (the words stay plain inline text: a word of its own layer, rotated or faded, was clipped at its advance by WebKit, so a final d, l or ! lost its top); `--jr` is kept for stylesheets of your own. The same seed always writes the same line, on the server and in the browser.
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| as | React.ElementType | "span" | The element to render. |
| strength | number | 1 | 0 renders plain text (no spans, no utility class), 1 is the default hand, 2 a hurried one. Compact density writes it lighter. |
| seed | string | number | - | Pins the hand. Default: derived from useId(). |
CLI 会复制进你项目的文件。
正在加载源码