Wrap the title of a playful page. Give the box a height and a padding.
not-found-page.tsx
TextFalling
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| on | — | Called when Matter.js does not load (the text then stays in place). | |
| draggable | boolean | — | The pieces can be dragged and thrown after the drop (mouse and touch). Default true. |
| 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 words (or letters) fall into the box and pile up on its floor. |
| by | "grapheme""word" | "word" | The size of a falling piece: a word (default) or a grapheme (a letter). |
| trigger | "click""hover""mount""view" | — | What drops the text: mount, view (the first time it is on screen, default), a click on the box, or a mouse hover. The Button that keyboard users reach always drops and resets. |
| active | boolean | — | Controlled: true drops the text, false puts it back. Pass onActiveChange with it. |
| default | boolean | — | Uncontrolled: true drops the text on mount, with no trigger. Default false. |
| on | — | Called when a trigger or the Button asks to drop (true) or to put back (false). | |
| gravity | number | — | The pull down, as a share of Matter's default gravity. Default 1. |
| bounce | number | — | How much a piece bounces, 0 to 1 (Matter restitution). Default 0.2. |
| show | boolean | — | The Button shows at all times. Default: only on keyboard focus. |
| labels | — | The words of the Button (FALLING_TEXT_LABELS). Keep the object stable. | |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
| Tab | Moves focus to the Button in the top corner of the box. It shows only while it has keyboard focus, unless showControl is set. |
|---|---|
| EnterorSpace | Drops the text, or puts it back when it has fallen. |
Built with
Installs with Text Falling
- Components
- Button











