Default
Handwritten words and an arrow that points left, at whatever is to their left.
A note in the margin: a few handwritten words and a hand arrow pointing at the thing they are about. It is an ordinary box, so put it where it belongs with a class: float it into the margin, absolutely position it, or drop it in a grid cell.
npx shadcn@latest add @wobko/callout第一次使用?先把 registry 加进 components.json。 如何安装
Handwritten words and an arrow that points left, at whatever is to their left.
The arrow points where you say; the words sit on its tail.
Float a callout into the page's padding (`float-end clear-end -me-56`) right after the words it is about: it lands on that line, whatever the width. Below md they are hidden.
Positioned with className over a form: a hint that points at the field it is about, that writes itself on when the form scrolls into view and goes away when you dismiss it.
A <span role="note"> with the words (written with a little per-word jitter) and an Arrow. `direction` is where the arrow POINTS, so a note on the right of a paragraph points left. The words sit on the arrow's tail side.
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| direction | "left" | "right" | "up" | "down" | "up-left" | "up-right" | "down-left" | "down-right" | "left" | Where the arrow points, so where the thing you are talking about is. |
| curve | "straight" | "curved" | "curl" | "curved" | The shaft of the arrow. |
| head | "v" | "two" | "open" | "solid" | "none" | "v" | The arrowhead. |
| tone | "blue" | "ink" | "red" | "green" | "pencil" | "marker" | "orange" | "blue" | The pen of the arrow. Blue felt is the reserved "you" ink and the natural one for notes. |
| weight | "fine" | "regular" | "brush" | "regular" | Fine-liner, felt tip or brush. |
| bend | "up" | "down" | "up" | Which way a curved arrow bulges. |
| arrow | boolean | true | Draw the arrow. Without it the callout is just handwritten words. |
| arrowClassName | string | "h-10 w-14" | Sizes the arrow. |
| animate | boolean | false | Write the note on when it first scrolls into view: the words fade in, the arrow draws itself. |
| show | boolean | true | Show or hide the note. |
| delay | number | - | Milliseconds before the note starts to appear. |
| seed | string | number | - | Pins the hand of the words and the arrow. |
CLI 会复制进你项目的文件。
正在加载源码