Skip to content

Text Constellation

Pro

Stars sit on the letter outlines and lines join them like a star chart. The stars twinkle and lean to the pointer.

  • 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 Constellation 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 headline. It draws once when it scrolls into view.

hero.tsx

TextConstellation

<span>
PropTypeDefaultDescription
childrenReactNode—A string, or the parts TextConstellationContent and TextConstellationCanvas.
localestring—The BCP 47 locale of the text, for the case of text-transform on the canvas. Default: the DisplayLocaleProvider locale, else "en-US".
trigger"hover""mount""view""view"When the lines draw: view (default) once, the first time it shows; mount once, at once; hover while a pointer is over it or keyboard focus is on it (or the link around it), and back to the plain text when it leaves.
drawnboolean—True draws the chart, false goes back to the plain text, on top of the trigger.
onDrawn—Called when the lines finish and the chart rests.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TextConstellationContent

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

TextConstellationCanvas

<canvas>
PropTypeDefaultDescription
...props<canvas> attributes—Every other attribute goes to the <canvas>, with a ref.
  • Use it on display text, 32px and up: under 24px the stars sit close and the text stays at 40% under them.
  • Use trigger="hover" inside a link or button: it reads the hover and focus of the nearest one, and goes back to the text after.
  • Set drawn to draw the chart or take it back from app state.
  • For a label that rolls on hover, use Text Roll.
Draw
draw · 0.9s per outline on the panel curve · letters start 60ms apart, 1.2s at most · each star pops in over 0.4s
Twinkle
sine · Each star swings between 62% and 100% at 0.18 to 0.5 Hz · never off, never faster than a flash every 2s
Pointer
follow · Stars within 1.4em brighten and lean up to 0.08em toward the pointer · eases in and out over about 0.25s
  1. AddedText Constellation.
Open the release