- Components
- Motion
- Shimmer
Shadcn Shimmer Components
A light sweep across text for loading and AI states, such as Thinking, Generating response or Processing payment. Built on the shadcn shimmer utility with color, speed, spread, angle, reverse, play once and RTL support, and it stops automatically for reduced motion. Browse our collection of 20 Shadcn Shimmer variants.
Basic
Generating response…
Thinking
Chat reply
Agent steps
- Searched 24 sources
- Read pricing pages
- Comparing plans and limits
- Writing the summary
Colors
Syncing your calendar…
Generating ideas…
Verifying payment…
Rebuilding the index…
Speed
Spread
Narrow highlight sweeping across the line
Default highlight sweeping across the line
Wide highlight sweeping across the line
Hero heading
Ship your next product faster
Components, blocks and templates for React and Tailwind CSS.
Reverse
Uploading to the cloud…
Downloading to this device…
Play once
Response generated.
Buttons
Badges
Upload status
Uploading · 4.2 of 12 MB
Terminal
$ pnpm deploy --prod
✓ Built 128 pages in 18.4s
✓ Uploaded static assets
→ Deploying to production…
Search
Searching 1,248 help articles…
Announcement link
Stop on hover
RTL
Generating response…
جارٍ إنشاء الرد…
With skeleton
Checkout
Unlock premium components
Explore Shadcn Blocks
Ready-made page sections built with the same components.
Shadcn Shimmer Component
The Shadcn Shimmer sweeps a soft band of light across a line of text. It tells users that something is still happening, such as an AI model thinking, a search running or a payment being processed, without a spinner taking up space or a progress bar you cannot fill.
This collection shows the shimmer where it is used in real products: AI chat replies and agent step lists, upload and checkout states, a deploy log, search status, buttons, badges, a hero heading and an announcement link. It also covers every option of the utility, including color, speed, spread, angle, reverse direction, play once, stop on hover and right to left text. It is part of shadcn/ui and works with React and Tailwind CSS v4 in any Radix UI or Base UI project.
What is the Shadcn Shimmer Component?
Shimmer is a Tailwind CSS utility, not a React component. Add the shimmer class to any text element and a gradient derived from the current text color moves across it through background-clip: text. The highlight brightens automatically in dark mode, follows the reading direction in right to left layouts and stops when the user prefers reduced motion.
Because it only needs a class, you can put it on a paragraph, a button label, a badge, a card description or a heading. Use it for status text while work is in progress. For content with a known layout use a Skeleton, and when you can measure progress use a Progress bar.
Anatomy of the Shadcn Shimmer
| Part | Description |
|---|---|
| shimmer | The base class. Clips an animated gradient to the text, with a 2 second loop by default. |
| shimmer-color-* | Sets the highlight color, for example shimmer-color-blue-500/70 or shimmer-color-[#378ADD]. |
| shimmer-duration-* | Loop length in milliseconds, such as shimmer-duration-1000. |
| shimmer-spread-* and shimmer-angle-* | The width of the highlight band in spacing units or an arbitrary length, and the tilt of the band in degrees. |
| shimmer-reverse, shimmer-once and shimmer-none | Flip the direction, play a single sweep, or turn the effect off, for example on hover or at a breakpoint. |
20 Shadcn Shimmer Variants
Each shimmer variant listed here is previewed live at the top of this page, together with its source code and install command.
- Basic: Generating response in muted text.
- Thinking: A Marker with a spinner and a shimmering Thinking label with a status role.
- Chat reply: A user message followed by an assistant row that reads the report with a shimmer.
- Agent steps: A checklist of agent steps where the running step shimmers, done steps are checked and upcoming steps are muted.
- Colors, speed and spread: Blue, violet, emerald and amber highlights, slow, default and fast loops, and narrow, default and wide bands.
- Hero heading: A large tilted sweep across a landing page headline.
- Reverse and play once: Upload and download lines that sweep in opposite directions, and a single sweep with a Replay button.
- Buttons and badges: Generating and Upgrade to Pro buttons, and Live, Syncing and New badges.
- Upload, terminal and search: A file row with upload status, a deploy log whose last line shimmers, and a help center search status.
- Announcement link and stop on hover: A What's new pill with a violet sweep, and a notifications button that stops shimmering on hover.
- RTL, skeleton and checkout: Left to right and Arabic text, a report card that pairs shimmer with Skeleton lines, and a Processing payment button.
How to Install the Shadcn Shimmer Component
Set up shadcn/ui in your project if you have not already, then add the Shadcn UI Kit registry to your components.json once:
{
"registries": {
"@shadcnuikit": "https://shadcnuikit.com/r/{name}.json"
}
}Then install a shimmer variant by its name:
npx shadcn@latest add @shadcnuikit/shimmer1The same command works with pnpm dlx, yarn dlx and bunx --bun. Each variant has a copy button for every package manager, and the code is added to your project as plain React and Tailwind CSS that you can edit freely.
How to Use the Shadcn Shimmer Component
Add shimmer to the status text and give the container role="status" so screen readers announce it. Remove the class, or swap the text, when the work is done.
import { Spinner } from "@/components/ui/spinner"
export function AssistantStatus({ pending }: { pending: boolean }) {
if (!pending) return null
return (
<p role="status" className="flex items-center gap-2 text-sm">
<Spinner className="text-muted-foreground" />
<span className="shimmer text-muted-foreground">Thinking…</span>
</p>
)
}Why Use the Shadcn Shimmer Component
- One class: No component, no JavaScript and no extra package beyond the shadcn CSS that new projects already import.
- Theme aware: The highlight is derived from the current text color and brightens in dark mode on its own.
- Fully configurable: Color, duration, spread, angle, direction and play once are all Tailwind classes, including responsive and state variants.
- Respects motion settings: The animation turns off and the text renders normally when users prefer reduced motion.
- RTL ready: The sweep follows the reading direction, so Arabic and Hebrew text need no extra class.
Common Shimmer Use Cases
- AI assistants: Thinking, searching and writing states in chat and agents.
- Background jobs: Deploys, imports, syncs and index rebuilds.
- Payments: Processing payment and verifying card states.
- Uploads: Status lines next to a progress bar.
- Search: Searching status under a query field.
- Marketing: A subtle sweep on a hero heading or a release pill.
Customizing the Shadcn Shimmer
Combine the modifier classes to tune the effect. Colors accept theme colors with an opacity, such as shimmer-color-violet-500/70, or arbitrary values. When the text already uses the full foreground color, give the highlight a contrasting color in dark mode, for example dark:shimmer-color-muted-foreground, so the sweep stays visible.
shimmer-none works in any class order, which makes it easy to stop the effect on hover, on focus or above a breakpoint:
<span className="shimmer shimmer-duration-1500 shimmer-color-violet-500/70 group-hover:shimmer-none">
3 new notifications
</span>Shimmer Accessibility
The shimmer only changes how the text is painted, so the text stays selectable and is read normally by screen readers. Put the status text inside an element with role="status" or aria-live="polite" so changes such as Thinking to Done are announced.
When the user prefers reduced motion, the animation is removed and the text uses its normal color. Keep enough contrast on the base text, because the moving highlight is not a substitute for readable color.
Shimmer Best Practices
- Use shimmer for short status text, not for whole paragraphs.
- Write what is happening, such as Reading the churn report, instead of a generic Loading.
- Shimmer one line at a time; several sweeping lines compete for attention.
- Stop the shimmer or replace the text as soon as the task finishes.
- Pair it with a spinner or progress bar when the wait can be long.
- Use a Skeleton for loading content with a known shape.
Shadcn Shimmer for AI Agents
Shimmer is the quickest way for an agent to show that work is in progress: one class on the status text of an AI reply, an agent step, a deploy log, a search or a payment button. Claude Code can write a specific status such as Reading the churn report, pick a color and speed that fit the screen and remove the class when the task finishes.
Install it with an AI agent
Claude Code, Cursor, Codex and other agents can install these with the shadcn CLI, for example npx shadcn@latest add @shadcnuikit/shimmer1. With the Shadcn UI Kit MCP server, your agent can search every variant by name and add the right one for you. To give it full context, share /components/shimmer.md, the Markdown version of this page with every variant and install command.
Example prompts
- “Show a shimmering Thinking status with a Spinner under the user message while our chat route is streaming.”
- “In the agent run view, shimmer only the step that is currently running and check off finished steps.”
- “Add a shimmering Processing payment label to the checkout button while the payment intent is confirming.”
Customize it with AI
Shimmer is a Tailwind utility from shadcn/tailwind.css, so the agent should not create a new component for it. Ask it to wrap the text in role status, use muted text or dark:shimmer-color-muted-foreground so the sweep stays visible in dark mode, and use shimmer-none or a key change instead of JavaScript timers to stop or replay it.
Components Related to Shimmer
Shadcn Shimmer FAQ
npx shadcn@latest add @shadcnuikit/shimmer1. With a Pro plan, the Shadcn UI Kit MCP server can also build complete sections and pages around it.Looking for something else? Browse all shadcn/ui components or ready-made UI blocks built with them.

















