Wrap the word people can break. It is a button for the keyboard, inside the heading.
The sample also uses Button. One command adds them with this item:
landing-hero.tsx
TextShatter
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | A string, or the parts TextShatterContent and TextShatterCanvas. |
| on | — | Called when Matter.js does not load (the text then stays plain). | |
| locale | string | — | The BCP 47 locale of the text, for the letter split and the case of text-transform on the canvas. Default: the DisplayLocaleProvider locale, else "en-US". |
| trigger | "click""hover""mount""view" | "click" | What shatters it: click (default) a click or tap, or Enter or Space when it has focus; view once, the first time it shows; mount once, at once; hover each time a pointer or keyboard focus reaches it (or the link around it). |
| shatter | boolean | — | True shatters it and holds the shards apart until false; then they come home. |
| on | — | Called when every letter is home and the page text shows again. | |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextShatterContent
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextShatterCanvas
<canvas>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <canvas> attributes | — | Every other attribute goes to the <canvas>, with a ref. |
| Tab | Moves the focus to the text, with trigger="click". |
|---|---|
| EnterorSpace | Shatters the text. In flight, it throws the shards again. |









