Skip to content

Text Ribbon

Pro

The text is printed on a ribbon that twists in 3D, with a wave along it and a turn toward the pointer.

  • three.js
  • 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 Ribbon 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
46
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 line of a release hero. The root padding is the band margin.

release-hero.tsx

TextRibbon

<span>
PropTypeDefaultDescription
childrenReactNode—A string, or the parts TextRibbonContent, TextRibbonCanvas, and TextRibbonControl.
wave"loop""none""once""once"The wave along the band: once (default) when it first shows and on each press, loop all the time, none never (the pointer still turns it).
turnnumber0.6How far the band turns under the pointer, 0 (not at all) to 1 (a half turn). Default 0.6.
bloomnumber0.6The glow around the band, 0 (off) to 2. Default 0.6.
grainnumber0.35The film grain on the band, 0 (off) to 1. Default 0.35.
fontstring—A font file URL of the text's font, woff, ttf, or otf (not woff2: troika cannot read it): the glyphs are drawn as SDF and stay sharp when the band turns. Default: the page text, drawn as the browser lays it out.
pausedbooleanfalseStops the wave where it is; the band eases flat.
plainbooleanfalseShow the plain text, with no WebGL.
onError—Called when three.js does not load or the WebGL setup fails. The plain text stays.
labelsPartial<{ wave: string; }>—The words of the control (RIBBON_TEXT_LABELS). Keep the object stable.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TextRibbonContent

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

TextRibbonCanvas

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

TextRibbonControl

<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 wave="once" (default) for one wave on view and on each press, loop for a wave all the time.
  • Use turn (0 to 1) for how far the pointer turns the band.
  • Use bloom and grain for the glow and the film grain; 0 turns each off and skips its pass.
  • Set font to the URL of the text's font file (woff, ttf, or otf; not woff2, which troika cannot read) for SDF glyphs that stay sharp when the band turns far.
  • Set --ribbon-text-face, --ribbon-text-ink, and --ribbon-text-back on the root for other colors.
  • For a title that folds in 3D with CSS only, use Text Fold.
TabMoves focus to the control on the end of the band. It shows only while it has keyboard focus, unless visible is set.
EnterorSpaceSends one wave along the band.
Wave
sine · 1.6s ease in, held, eased out by 5s · the band twists up to 66° along 1.2 waves
Pointer
indicator · in, panel out · the band turns up to a half turn under the pointer

Built with

Installs with Text Ribbon

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