Skip to content

Text Outline Spotlight

Pro

Only the outlines of the letters show, until a round light under the pointer fills them with color.

  • 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 Outline Spotlight 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
16
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 words of a heading or a link. Pass reveal to show a hidden text inside the light.

launch-hero.tsx

TextOutlineSpotlight

<div>
PropTypeDefaultDescription
childrenRequiredReactNode—The text. It stays real text: selectable.
revealReactNode—What the light shows instead of the text in color: a hidden message, a translation, a spoiler. Default: the text in the gradient text colors.
radiusnumber—The radius of the light in px. Default 120.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Pass reveal to show another text in the light: a hidden message, an answer, or a translation.
  • Put it inside a link or a button when the text leads somewhere: keyboard focus on it sweeps the light.
  • For the same effect with another look, use Text Plain Spotlight.
  • For text a reader must open on purpose, such as a spoiler with a clear control, use Spoiler.
  • For a plain mark on a key phrase, use Highlight.
TabMoves the focus to the text, or to the link or button around it. The light sweeps across the text, then covers all of it.
EnterorSpaceWith reveal and no control around it: holds the light over all of the text, or lets it go.
Grow
panel · 260ms · ease-panel (0.2, 0.4, 0.2, 1) · the light grows to its radius where the pointer enters
Fade
fade · 150ms · ease-out (0, 0, 0.2, 1) · the light shrinks to nothing when the pointer leaves
Focus sweep
draw · 900ms · ease-panel (0.2, 0.4, 0.2, 1) · the light crosses the text once from the start edge on keyboard focus
Cover
panel · 260ms · ease-panel (0.2, 0.4, 0.2, 1) · the light glides to the middle and grows over all of the text after the sweep or on a press
  1. AddedText Outline Spotlight.
Open the release