Skip to content

Text Diff Typing

Pro

A replay of a real edit: a cursor moves, deletes, types new words, and selects text in a line.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 15, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Text Diff Typing needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
23
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Give the text before and after the edit.

release-note.tsx

TextDiffTyping

<span>
PropTypeDefaultDescription
localestring—The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US".
fromRequiredstring—The text before the edit.
toRequiredstring—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.
loopbooleanfalsePlay the edit again after a rest. Default false: the new text stays.
typeSpeednumberDIFF_TYPING_TIMING.typeSpeedSeconds per key typed. Moves and selections take a few keys each. Default 0.06.
holdnumberDIFF_TYPING_TIMING.holdSeconds the new text rests before a loop plays again. Default 2.
onComplete—Called after the last key (never with loop).
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Use loop to play the edit again after hold seconds.
  • Use typeSpeed for the seconds per letter.
Type
instant · 60ms a key by default (`typeSpeed`); the result holds 2s (`hold`) before a loop
  1. AddedText Diff Typing.
Open the release