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/handwrittenFirst time here? Add the registry to components.json first. How to install
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.
| Prop | Type | Default | Description |
|---|---|---|---|
| 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(). |
The files the CLI copies into your project.
Loading the source