Xzero UI
Pro library

Text shimmer

Show ongoing work with a calm light across the words.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui/text-shimmer
Live · keyboard ready

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui/text-shimmer

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { TextShimmer } from "@/components/xzero/text-shimmer/text-shimmer";

export function AssistantStatus({ busy }: { busy: boolean }) {
  return (
    <TextShimmer active={busy}>
      {busy ? "Generating summary" : "Summary ready"}
    </TextShimmer>
  );
}

API reference

TextShimmer

A calm light sweep across a short status line to show that work is ongoing. When active turns false the band glides off and the text settles to solid.

PropTypeDefaultDescription
children (required)string–The status text. Keep it to one short line. A new value rises in place.
activebooleantrueSweep while work is ongoing.
durationnumber1.8Seconds for one sweep across the text.
as"span" | "p" | "div" | "h2" | "h3" | "h4""span"Rendered element.
classNamestring–Merged onto the rendered element.
idstring–Forwarded to the rendered element.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Also in text effects

Guidance for AI tools

Text shimmer: Show ongoing work with a calm light across the words. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components