Put it inside a heading around the word people can stretch.
The sample also uses Button. One command adds them with this item:
landing-hero.tsx
TextElasticLetters
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| locale | string | — | The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US". |
| children | string | — | The text. Each letter can be grabbed; a script that joins its letters moves by word. |
| paused | boolean | — | Stops the effect (controlled): the letters go home and take no drag. |
| default | boolean | — | The first pause when paused is not given. Default false. |
| on | — | Called when the pause changes. | |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
| Tab | Moves the focus to the text. |
|---|---|
| Left / Right | Picks the letter to pull. A line under it shows which one. |
| Up / DownorShiftLeft / Right | Pulls the letter 10px per press. The release of the key springs it home. |







