Components/GlowText
Universal Component

GlowText

Animated shine overlay for text and compact UI surfaces.

This page was migrated by AI, please review carefully

Migration is complete, but please validate against source code and manual review.

GlowText

TxGlowText adds a sweep highlight over text, badges, image previews, and compact surfaces. Use mode="text-clip" when the shine should be clipped to glyphs; keep the default adaptive mode for container-level shimmer.

adaptive is enabled by default (container-level shimmer, good for images/cards); for text use mode="text-clip" so shimmer clips to glyphs.

text-clip currently sweeps right β†’ left (aligned with the ShinyText reference).

Basic Usage

GlowText

Interactive preview paused.

Applied to Images/Cards

GlowText on image

Interactive preview paused.

More Examples

GlowText in UI

Interactive preview paused.

API

Props

PropTypeDefaultDescription
tagstringspanRoot element used to wrap the default slot.
activebooleantrueDisables the shine overlay when set to false.
repeatbooleantrueRuns the sweep once when set to false.
durationMsnumber1400Sweep animation duration in milliseconds.
delayMsnumber0Delay before the sweep animation starts.
anglenumber20Gradient angle in degrees.
bandSizenumber38Highlight band width as a percentage of the gradient.
colorstringrgba(255, 255, 255, 0.9)Highlight color used in the sweep gradient.
opacitynumber0.75Overlay opacity during the visible part of the sweep.
blendModestring-Optional CSS mix-blend-mode override for the shine overlay.
mode'classic' | 'adaptive' | 'text-clip'adaptiveadaptive uses a container overlay; text-clip mirrors slot text and clips the shine to glyphs.
backdropstring-Optional CSS backdrop filter override for the shine overlay.
radiusnumber10Root border radius in pixels.