Put it inside a heading and give it the words: it shows each one in turn.
hero-heading.tsx
TextRollRotate
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| 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. |
| locale | string | — | The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US". |
| texts | readonly string[] | — | The texts to show in turn, at least two. |
| interval | number | — | Seconds each text stays. Default 2.5. 0 or less holds the current text. |
| reserve | boolean | — | Keep the width of the widest text, so the text after it never moves. Default false: the width slides to each new text. |
| index | number | — | The index of the text that shows (controlled). Each turn calls onIndexChange. |
| default | number | — | The index of the text that shows first (uncontrolled). Default 0. |
| on | — | Called with the index of each new text. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |











