Give the text before and after the edit.
release-note.tsx
TextDiffTyping
<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". |
| from | string | — | The text before the edit. |
| to | string | — | The text after the edit. |
| trigger | "mount""view" | "view" | When the edit starts: view (default) the first time it is on screen, mount at once. |
| loop | boolean | false | Play the edit again after a rest. Default false: the new text stays. |
| type | number | DIFF_TYPING_TIMING.typeSpeed | Seconds per key typed. Moves and selections take a few keys each. Default 0.06. |
| hold | number | DIFF_TYPING_TIMING.hold | Seconds the new text rests before a loop plays again. Default 2. |
| on | — | Called after the last key (never with loop). | |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |







