Skip to content

Shimmer

The Shimmer component animates a sweep of light across text, most often to signal that content is still generating in AI and chat interfaces. It wraps a single string of text and renders it as any element you choose.

Installation

import { Shimmer } from '@harnessio/ui/components'
// Basic usage
<Shimmer>Generating response...</Shimmer>
// With custom color
<Shimmer color="foreground-1">
Processing your request...
</Shimmer>
// With custom duration and spread
<Shimmer duration={3} spread={3} color="brand">
Loading...
</Shimmer>
// As a different element
<Shimmer as="h2" variant="heading-base">
Loading title...
</Shimmer>