Skip to content

Text Falling

Pro

Words or letters drop into their box with real physics and pile up. People can drag and throw them.

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

Added Nov 14, 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 Falling 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
35
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.

Wrap the title of a playful page. Give the box a height and a padding.

not-found-page.tsx

TextFalling

<span>
PropTypeDefaultDescription
onError—Called when Matter.js does not load (the text then stays in place).
draggableboolean—The pieces can be dragged and thrown after the drop (mouse and touch). Default true.
localestring—The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US".
childrenRequiredstring—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.
activeboolean—Controlled: true drops the text, false puts it back. Pass onActiveChange with it.
defaultActiveboolean—Uncontrolled: true drops the text on mount, with no trigger. Default false.
onActiveChange—Called when a trigger or the Button asks to drop (true) or to put back (false).
gravitynumber—The pull down, as a share of Matter's default gravity. Default 1.
bouncenumber—How much a piece bounces, 0 to 1 (Matter restitution). Default 0.2.
showControlboolean—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.
  • Give the root a height (h-72) and a padding: the words fall to the bottom of the box and pile inside its padding.
  • Use trigger for what drops the text: view (default) the first time it is on screen, mount, a click on the box, or a mouse hover.
  • Use by="grapheme" for one piece per letter. A script that does not split into letters (Arabic) falls by word.
  • Use gravity (default 1) and bounce (0 to 1, default 0.2) for the feel of the fall.
  • Use showControl to show the drop and put back Button at all times; by default it shows only on keyboard focus.
  • Use active and onActiveChange to drop and put back the text from the page.
  • For a heading made of particles that move away from the pointer, use Text Particle.
  • For text that people must read after the effect, such as a long paragraph or a button label, use plain text.
TabMoves focus to the Button in the top corner of the box. It shows only while it has keyboard focus, unless showControl is set.
EnterorSpaceDrops the text, or puts it back when it has fallen.
Fall
instant · each piece falls on Matter.js physics at 120 steps a second, with a small kick out from the middle, and rests in a pile
Drag
instant · a held piece follows the pointer on a soft physics pull, and keeps the speed of a throw when it is let go
Put back
reveal · 400ms · every piece slides and turns back to its place in the line

Built with

Installs with Text Falling

Components
Button
  1. AddedText Falling, with Button.
Open the release