Wrap the headline. It draws once when it scrolls into view.
hero.tsx
TextConstellation
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | A string, or the parts TextConstellationContent and TextConstellationCanvas. |
| locale | string | — | The BCP 47 locale of the text, for the case of text-transform on the canvas. Default: the DisplayLocaleProvider locale, else "en-US". |
| trigger | "hover""mount""view" | "view" | When the lines draw: view (default) once, the first time it shows; mount once, at once; hover while a pointer is over it or keyboard focus is on it (or the link around it), and back to the plain text when it leaves. |
| drawn | boolean | — | True draws the chart, false goes back to the plain text, on top of the trigger. |
| on | — | Called when the lines finish and the chart rests. | |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextConstellationContent
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextConstellationCanvas
<canvas>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <canvas> attributes | — | Every other attribute goes to the <canvas>, with a ref. |







