Set a short line on an arc over a heading, or run a band along a wave at the edge of a section.
store-hero.tsx
TextArcPath
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| draggable | boolean | — | A pointer drag moves the band, and a release throws it. Default true. |
| paused | boolean | — | The pause of the user or the page (controlled). |
| default | boolean | — | The first pause when paused is not given (uncontrolled). Default false. |
| on | — | Called when the pause changes. | |
| pause | boolean | — | Hold the motion while a mouse is over the item, or keyboard focus is on the link or button around it (or in it). Default true. |
| text | string | — | The text. For a loop, end it with a separator ("Free shipping • "), so the copies read well. |
| bend | number | — | The bend in em: how far an arc rises (negative dips), or how far a wave goes up and down. |
| wavelength | number | — | The length of one wave, in em (wave). Default 10. |
| path | — | Your own path, in px of the box: an SVG path string, or a function of the box size. Set a height on the root (className="h-40"): the box has no height of its own with a custom path. | |
| align | "center""end""start" | — | Where still text sits on the path: start, center (default), or end. |
| fit | boolean | — | Still text: space the letters to fill the whole path. Not for a script that joins its letters. |
| loop | boolean | — | Run the text along the path as a band, with no end. |
| speed | number | — | How fast the band runs, as a multiplier of the designed pace. Default 1. |
| reverse | boolean | — | Run the band to the end of the path, not to its start. |
| scroll | number | — | The share of the page scroll speed that adds to the band speed. Default 0 (off). |
| fade | boolean | — | Fade the band out at the two ends of the box. Default: on for a loop. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | Focus on a link or a button around the band eases it to a stop until the focus leaves. |
|---|











