Skip to content
Components / Composition

Shimmer text

A CSS-only loading label with a light sweep.

@fabrials/ui
Loading state

Thinking

Generating image

Searching 14 sources for recent coverage

Installation

  1. Import the control from @fabrials/ui, after setting the app up.

    TypeScript
    import { ShimmerText } from "@fabrials/ui";

API reference

Prop / exportTypeDescription
childrenstringThe label.
asElementTypeElement to render. Defaults to p.
durationnumberSweep length in seconds. spread sets the highlight width.

Behavior

Use it for a short pending label, not for content. Under reduced motion it is plain muted text.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.