Wrap the text of a heading. Chain the next line with delay.
The sample also uses Button. One command adds them with this item:
hero-heading.tsx
TextPopReveal
<div>| 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 to reveal. A new text reveals again. |
| by | "grapheme""line""word" | — | The size of the pieces that enter one after another. Default word. line moves the words of one line together, so the lines enter one by one. A script that joins its letters (Arabic) never splits into letters: grapheme reveals it by word. |
| order | "center""edges""end""random""start" | — | The order in which the pieces (or the lines, with by line) start: start (default, reading order), end, center (from the middle out), edges (from both ends in), or random (a fixed shuffle of each text, the same on the server and in each run). |
| show | boolean | — | Off plays the text out: the pieces go back to the hidden look, the last piece in first, at half the pace. On again plays it in from where it is. Default on. |
| trigger | "mount""view" | — | When the reveal starts: view (default) the first time a part of the text is on screen, mount at once. |
| delay | number | — | Seconds to wait before the first piece, to follow another reveal. It holds for each reveal from rest (the first one, and each show on after a whole exit), not for a turn back in the middle of an exit. Default 0. |
| on | — | Called when the last piece has landed. | |
| on | — | Called when the last piece has left, after show turned off. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |











