Shimmer Skeleton
betaA glassy card placeholder — avatar, text lines and a media block — with one soft diagonal shimmer sweeping across it.
- Feedback
- 1 file
- 1 npm package
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add shimmer-skeletonnpm packages installed: class-variance-authority.
import { ShimmerSkeletonShape } from "@/components/ui/shimmer-skeleton";Default
Demo
Custom Layout
Sizes
<ShimmerSkeletonShape>
| Prop | Type | Default |
|---|---|---|
shape | "circle" | "line" | "block" | "line" |
Plus every attribute of <span>.
<ShimmerSkeleton>
| Prop | Type | Default |
|---|---|---|
labelAnnounced once to assistive technology. Pass an empty string to stay silent. | string | "Loading" |
shimmerPlay the shimmer. Set false to show a still placeholder. | boolean | true |
size | "sm" | "md" | "lg" | "md" |
Plus every attribute of <div>.
The root is a polite role="status" with aria-busy, named by a visually hidden `label` ("Loading" by default), so the loading state is announced once for the whole card; pass an empty label when the surrounding region already reports it. Every shape and the shimmer are aria-hidden. The shimmer is decorative and stops under reduced motion, leaving a still placeholder.
7/7
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — does not apply
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes