Wrap the target, then add the note parts after it.
The sample also uses Button. One command adds them with this item:
share-hint.tsx
HandNote
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| tone | "info""neutral" | — | |
| side | "bottom""top" | "top" | The edge of the target the note points at. Default top. |
| align | "end""start" | "end" | Which way the note leans from the middle of that edge. Default end. |
| size | "default""lg""sm" | "default" | Arrow 60, 72, or 96 px wide; label 17, 22, or 27 px. Default default. |
| show | boolean | — | Show the note (controlled). |
| default | boolean | true | The first show (uncontrolled). Default true. |
| on | — | ||
| hide | "context-menu""focus""hover""never""press" | "press" | The try of the target that hides the note. Default press (a pointer or key press). |
| trigger | "mount""view" | "view" | When it draws: view (default) the first time it is on screen, mount at once. |
| delay | number | 0 | Seconds to wait before it draws. Default 0. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
HandNoteContent
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
HandNoteArrow
<svg>| Prop | Type | Default | Description |
|---|---|---|---|
| stroke | number | 2 | The pen width in px. Default 2. |
| curve | "bounce""curl""hook""squiggle""straight""swoop" | "curl" | The path of the arrow. Default curl. |
| head | "barb""none""open" | "open" | The head at the tip. Default open. |
| ...props | <svg> attributes | — | Every other attribute goes to the <svg>, with a ref. |
HandNoteLabel
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
HandNoteMark
<svg>| Prop | Type | Default | Description |
|---|---|---|---|
| stroke | number | — | The pen width in px, the same at every size. Default 2. |
| mark | "bang""burst""check""click""cross""double-click""drag""drop""heart""hover""key""lasso""long-press""pinch""question""resize""right-click""scroll""sparkles""spiral""star""swipe""tap""trail""type""zigzag" | — | The mark to draw: a gesture glyph (click, drag), a small mark (burst), or an area. |
| pixel | number | — | The width in px; the height follows the mark. Default: 44, 32, or 160 by kind. |
| tone | "info""neutral" | — | |
| loop | boolean | — | Draw the action strokes again every 2.4s (the click ticks, the drag arrow), while the mark is on screen. Only gesture glyphs have action strokes. Default false. |
| ...props | <svg> attributes | — | Every other attribute goes to the <svg>, with a ref. |
| EnterorSpace | On the target, hides a note with hideOn="press", as a click does. |
|---|---|
| Context MenuorShiftF10 | On the target, hides a note with hideOn="context-menu", as a right click does. |
Built with
Installs with Hand Note
- Components
- Hand Mark







