Shimmer / Skeleton

A small, flexible set of skeleton components for loading UI.
Variants: line, avatar, card, rect, list.

Simple lines

Simple lines

Avatar list

Avatar list

Card placeholders

Installation

npx shadcn-extras@latest add shimmer

Props

Shimmer

PropTypeDefaultDescription
variant'line' | 'avatar' | 'card' | 'rect' | 'list''line'Which skeleton shape to render.
linesnumber3For line or list, number of rows.
widthstring | number'100%'CSS width (applies to line/list items).
heightstring | number'1rem'CSS height (applies to line/card rect).
circlebooleanfalseIf true, makes avatar/rect fully rounded.
animatebooleantrueEnable shimmer gradient animation.
classNamestringCustom classes for wrapper.
lineClassNamestringCustom classes for each line (when line).
cardClassNamestringCustom classes for card skeleton.
avatarSizenumber | string40For avatar variant, pixel size.

✅ This format matches your testimonial doc page.
✅ No css-variables theme involved — only your ComponentCodePreview renderer.

Would you like me to also create the registry entry (registry-examples.ts + registry-components.ts for shimmer) like I did for blog cards/testimonials? That way npx shadcn-extras add shimmer would work directly.