Wrap the words that should react, inside a heading or a button.
The sample also uses Button. One command adds them with this item:
hero.tsx
TextPullProximity
<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. | |
| 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. Its letters near the pointer lift and grow. |
| radius | number | — | How far the pointer reaches, in px from the center of a letter. Default 100. |
| falloff | "distance""index" | — | How the effect falls off: by the distance of each letter (default), or by its index from the letter under the pointer, as icons in a dock (#/lib/pro/pointer-falloff-model). |
| spread | number | — | falloff="index" only: how many letters on each side react. Default 2. |
| ripple | boolean | — | A press on the text sends a ring of lift out from the press point. Default off. |
| idle | boolean | — | A slow bump crosses the text while the pointer is away (2.4s a pass, then 1.2s of rest), only on screen. paused stops it. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | Moves the focus to the link or button around the text. One sweep crosses the letters from the start edge. |
|---|















