All components
Chewypixel component

Shimmer

Text with a band of light sweeping across it, for loading and thinking states.

Thinking through your question…

Installation

npx shadcn@latest add @chewypixel/shimmer

Usage

import { Shimmer } from "@/components/ui/shimmer";

export function Thinking() {
  return <Shimmer className="text-sm">Thinking…</Shimmer>;
}

Props

duration

How long one sweep takes, in seconds. With reduced motion, the text stays still.

number = 2

className

Classes for the text.

string

Released under the MIT License.

More components

See them in a real app

These components come from Fizz, our AI chat template built with Next.js, shadcn/ui and Motion.