# Arrow

Hand-drawn arrow that draws itself from one point to another along a gentle curve, then flicks its head on.

```bash
npx shadcn add https://www.reelcn.dev/r/arrow.json
```

Usage:

```tsx
<Arrow from={{ x: 27, y: 72 }} to={{ x: 47, y: 48.5 }} label="Best week yet" />
```

Use for:

- Pointing at a detail in a screenshot, chart or product demo
- Annotating a feature with a short handwritten-style label

Avoid:

- Circling a whole card or number. Use `scribble-circle`

Dependencies:

- `remotion`


## Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| delay? | `number` | — | Frames to wait before entering. |
| duration? | `number` | — | Enter duration in frames. Defaults to 0.6s. Some items reuse `duration` for an unrelated local timing. See that item's own prop docs. |
| exit? | `number \| boolean` | — | Exit at the end of the parent `<Sequence>`. `false` keeps it on screen, a number sets the exit length in frames. |
| motion? | `MotionPersonality` | — | Override the theme's motion personality. |
| poster? | `boolean` | — | Renders fully entered, with no exit: for a still frame or thumbnail. Defaults to `false`. |
| holdFrames? | `number` | — | Delays the start of the exit window by this many frames, for a minimum on-screen hold. Defaults to `0`. |
| from | `ArrowPoint` | — | Tail, in % of the canvas (0-100 on each axis). |
| to | `ArrowPoint` | — | Tip, in % of the canvas (0-100 on each axis). |
| curve? | `number` | `0.3` | Bend as a share of the arrow's length: 0 is (nearly) straight, negative bends the other way. |
| strokeWidth? | `number` | `6` | Stroke width in design units. |
| headSize? | `number` | — | Arrowhead barb length in design units. Defaults to 5 × `strokeWidth` + 8. |
| label? | `string` | — | Text written next to the tail. |
| labelSize? | `number` | `40` | Label size in design units. |
| color? | `string` | — | Stroke color. Defaults to the theme accent. |
| labelColor? | `string` | — | Label color. Defaults to `color`. |
| seed? | `string \| number` | `"arrow"` | Varies the hand-drawn wobble; the same seed always draws the same arrow. |
| style? | `CSSProperties` | — |  |
| className? | `string` | — |  |