Default
A red-pencil asterisk after a word, raised like a superscript.
Hand-drawn footnote marks: an asterisk, a star, a dagger or a double dagger, in red pencil, sized like a superscript after the word they belong to. Give it a label and an href and it links to the footnote.
npx shadcn@latest add @wobko/asterisk第一次使用?先把 registry 加进 components.json。 如何安装
A red-pencil asterisk after a word, raised like a superscript.
Asterisk, star, dagger and double dagger; red, ink, blue and pencil. Text inside comes first and the mark follows it.
The mark is a link (with a name) to the footnote at the foot of the card, sized to the 36 px price it follows.
A <span> holding the drawn mark. Children come first and the mark follows them: <Asterisk>fine print</Asterisk>. The glyph is intrinsic art (kept in Windows high contrast) drawn once per seed.
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| mark | "asterisk" | "star" | "dagger" | "double-dagger" | "asterisk" | Which mark. |
| tone | "red" | "ink" | "blue" | "pencil" | "red" | The pen color of the mark. |
| label | string | - | The accessible name ("footnote 1"). Without it the mark is decoration and hidden from assistive technology. |
| href | string | - | Turns the mark into a link to the footnote. Its accessible name is `label`, or "footnote". |
| seed | string | number | - | Pins the hand of the strokes. |
CLI 会复制进你项目的文件。
正在加载源码