Skip to content

Shimmer Text

A soft bright band sweeping through in-progress labels: Thinking…, Searching…, Running tests. Or one shine across an announcement pill.

On this page

Examples

Variant
Duration
2s
Spread
6

Installation

npx knowns-ui@latest add shimmer-text
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

text
string
The label.
active
boolean
Defaulttrue
Run the sweep. false shows plain text, e.g. once the step is done.
duration
number (s)
Default2
Time for the band to cross the text.
spread
number
Default6
Width of the bright band, in characters.
variant
"wave" | "sweep"
Default"wave"
wave: each letter fades up and back. sweep: one soft light band glides across the label.
pill
boolean
Defaultfalse
Wrap the label in a rounded chip (uses the sweep), e.g. an announcement.
color
string
DefaultcurrentColor
Colour of the band; the rest of the text dims.
Accessibility
-
Screen readers get the full text once; the animated layer is aria-hidden. prefers-reduced-motion shows the final text. Pauses offscreen, in hidden tabs and on paused.

When to use

When to use

  • Short in-progress labels such as Thinking… or Searching the web.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Shimmer Text to my app and wire it to my own data.
  • I need short in-progress labels such as Thinking… or Searching the web. Set that up with the Knowns UI Shimmer Text.
  • Which Shimmer Text props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "shimmer-text" }) and search_docs({ query: "shimmer text" }).

Need help?

Stuck on Shimmer Text, or found something off? We read every message.