Skip to content

Text shimmer

Moves a soft highlight across text to show that work is in progress.

Searching 24 sources

text-shimmer-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Usage

search-status.tsx

Agent steps

Also install Button.

  1. Read the brief
  2. Draft the outline
  3. Check the sources
text-shimmer-steps-demo.tsx

Color

Set the text color for the base and --text-shimmer-highlight for the highlight.

Generating your report

text-shimmer-color-demo.tsx

API reference

active: boolean = true
Runs the highlight. Set false when the work is done.
duration: number = 1.6
Time in seconds for one pass of the highlight. A short pause follows each pass.
--text-shimmer-highlight: CSS color = var(--color-foreground)
Color of the highlight. Set it in className.