Skip to content

Text Rope

Pro

The text hangs on a rope pinned at both ends. Pull a letter and the rope bends, then swings back straight.

  • 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 Rope 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
31
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. The rope pins to the ends of each line.

maintenance-page.tsx

TextRope

<span>
PropTypeDefaultDescription
childrenReactNode—A string, or the parts TextRopeLetters, TextRopeLine, and TextRopeControl.
onError—Called when Rapier does not load (the plain text stays).
swing"none""view""view"view (default): the rope swings once the first time it shows. none: it hangs still.
onSettled—Called when the rope comes to rest and the letters are the page text again.
labelsPartial<{ swing: string; }>—The words of the control (ROPE_TEXT_LABELS). Keep the object stable.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TextRopeLetters

<span>
PropTypeDefaultDescription
localestring—The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US".
childrenRequiredstring—The text. Up to 40 letters each hang on their own; a longer text hangs by words.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TextRopeLine

<svg>
PropTypeDefaultDescription
...props<svg> attributes—Every other attribute goes to the <svg>, with a ref.

TextRopeControl

<button>
PropTypeDefaultDescription
classNamestring—
busyboolean—The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading.
spinnerPlacement"center""start"—center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label.
glass"clear""dark""light"—
rounded"default""full"—
size"default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs"—
variant"dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary"—
visiblebooleanfalseThe control shows at all times. Default: only on keyboard focus.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.
  • Use it on display text, 32px and up: the pins and the sag scale with the font.
  • Use swing="none" to keep it still until a hand moves it.
  • Leave out TextRopeLine for letters that swing on an unseen rope.
  • For words that fall into a pile and can be thrown, use Text Falling.
TabMoves focus to the control in the swing room above the text. It shows only while it has keyboard focus, unless visible is set.
EnterorSpaceSwings the rope.
Left ArroworRight ArrowPushes the rope to the left or to the right.
Swing
instant · Rapier 2D at 120 steps a second, damped to rest in about 2s, then the letters snap to the page text
Release
instant · the rope keeps the speed of the hand, capped at 900px/s (15px a frame at 60 Hz)

Built with

Installs with Text Rope

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