Shimmer loader preview

Shimmer loader

Skeleton blocks that share one soft light sweep, plus shimmering text for “Thinking…” states

  • Group
    Skeletons
  • Origin
    Copied · affectUI · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/shimmer-loader

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { Skeleton } from "@/registry/components/shimmer-loader/shimmer-loader";

<Skeleton>Label</Skeleton>

Props

NameTypeDefaultDescription
Skeleton · widthnumber | string"100%"Width – numbers are px, strings any CSS length
Skeleton · heightnumber | string12Height – numbers are px
Skeleton · radiusnumber | string6Corner radius
Skeleton · circlebooleanfalseRound shape that uses width for both sides, e.g. for avatars
Skeleton · className / stylestring / CSSPropertiesExtra class or inline styles on the block
ShimmerText · childrenReactNodeThe label the highlight runs through
ShimmerText · durationnumber2Seconds for one pass of the highlight
ShimmerText · classNamestringExtra class – font size and weight are inherited

When to use

- Placeholders while cards, lists or profiles load, shaped like the content that will arrive - A shimmering status label while an AI answer or a long task is being generated

When not to use

Known-duration progress (use a progress bar) or full-page blocking loads.

Related

Thinking loader · Bars spinner · Dot matrix loader