Skip to content

React Skeleton Loader

A glass React skeleton loader that holds the exact layout while content loads, so nothing jumps when it arrives.

npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/skeleton.json
Loading profile
  • Skeleton
  • SkeletonCard
  • SkeletonList
  • SkeletonRect
  • SkeletonText
  • +6 more
  • +3 more

Presets

SkeletonCard and SkeletonList match a real card and list line for line: text skeletons use the same line boxes as the text (20px for 14px text), so nothing jumps when the content arrives. Each preset is one named loading region, never one label per line.

Loading article
Loading activity

Files to copy

3 folders · 1 file · 2 packages
From theme/src/
  • components/skeleton/
  • lib/cn.ts
  • styles/
shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/skeleton.jsonRegistry item: skeleton. The styles need the Tailwind v4 glass UI setup.
Packages
pnpm add clsx tailwind-merge

Building blocks

Compose your own from Skeleton (rect, text, pill, circle), SkeletonText, SkeletonCircle and SkeletonRect. Wrap them in SkeletonGroup: it names the loading region once, and one beam of light crosses the whole group, every shape in step wherever it sits.

Loading profile

Skeleton

PropTypeDefaultDescription
shape"circle" | "rect" | "text" | "pill""rect"rect (rounded box, default), text (one line), pill (button / chip), circle (avatar).
widthstring | numberNoneCSS width: a number is px, a string is used as is ("60%", "12rem").
heightstring | numbertheir widthCSS height: a number is px, a string is used as is. Circles default to their width.
shimmerbooleantrueSweep of light across the shape. Never drawn under reduced motion.

SkeletonText

PropTypeDefaultDescription
linesnumber3Number of lines (0 renders none).
size"sm" | "md" | "lg" | "heading" | "xs""md"Matches the text it stands in for: xs 12px … lg 18px body text, or a heading.
lastLineWidthstring"62%"Width of the last line (it is usually shorter).
shimmerbooleantrueSets the sweep of light across the lines.
labelsPartial<SkeletonLabels>defaultSkeletonLabelsWhen labels.loading is set, the block announces itself as a loading region (role="status"). Every other string, for translation: labels={{ loading: "…" }}; omitted keys keep the English of defaultSkeletonLabels. Its only key is listed in the key table under the props table.
SkeletonLabels keys and English defaults (1)
Pass any key in labels; the rest keep the defaults of defaultSkeletonLabels.
KeyEnglish default
loadingLoading…

SkeletonCard / SkeletonList

PropTypeDefaultDescription
mediabooleantrueShows a 16:9 media block on top.
avatarbooleantrueAn avatar with a name and a meta line.
linesnumber3Sets the number of body text lines (14px text; 0 for none).
actionsnumber2Number of pill buttons in the footer, sized like small buttons (0 for none).
surface"glass" | "plain""glass"glass: its own glass card (default). plain: shapes only, to drop into your own card.
shimmerbooleantrueSets the sweep of light across the shapes.
labelsPartial<SkeletonLabels>defaultSkeletonLabelsSpoken text: labels.loading is heard while loading (null when an outer SkeletonGroup already announces it). Every other string, for translation: labels={{ loading: "…" }}; omitted keys keep the English of defaultSkeletonLabels. Its only key is listed in the key table under the props table.
rowsnumber4Number of rows (0 renders none).
trailingbooleantrueA trailing pill (a status badge or button) at the end of each row.

SkeletonGroup

PropTypeDefaultDescription
labelsPartial<SkeletonLabels>defaultSkeletonLabelsSpoken text. labels.loading is what screen readers hear while this region loads (null when an outer region already announces it). Every other string, for translation: labels={{ loading: "…" }}; omitted keys keep the English of defaultSkeletonLabels. Its only key is listed in the key table under the props table.

SkeletonCircle props

PropTypeDefaultDescription
shimmerbooleantrueSweep of light across the shape. Never drawn under reduced motion.
size"sm" | "md" | "lg" | "xl" | "xs""md"Sets the size: xs 24 · sm 32 · md 40 (default) · lg 48 · xl 64 px.

SkeletonRect props

PropTypeDefaultDescription
heightstring | numbertheir widthCSS height: a number is px, a string is used as is. Circles default to their width.
widthstring | number"100%"CSS width: a number is px, a string is used as is ("60%", "12rem").
shimmerbooleantrueSweep of light across the shape. Never drawn under reduced motion.
ratiostringNoneCSS aspect ratio, e.g. "16 / 9" (media) or "1" (square). Ignored when height is set.

Keyboard

KeysAction
TabNot focusable: skeletons are not focusable.

Accessibility

  • Shapes are aria-hidden. Wrap a loading region in SkeletonGroup, or give a preset its own label, so screen readers hear one polite "Loading…" instead of nothing.
  • Remove the skeleton (and the status) as soon as content arrives so the real content is announced in its place.
  • The live demos on this page pass role="none": a skeleton that is already on screen when the page loads should not be announced. Keep the status role for a skeleton that appears after a user action.
  • One shared shimmer beam; it does not run under reduced motion.

All exports on this page

  • Skeleton — Skeleton: one placeholder shape that holds the layout while content loads.
  • SkeletonCard — A content card preset: media, author row, text and actions, in a SkeletonGroup.
  • SkeletonCircle — An avatar or icon placeholder: a Skeleton circle.
  • SkeletonGroup — Wraps skeleton shapes: a named loading region (role="status" with a visually hidden label) and the box the shimmer sweeps across in one beam.
  • SkeletonList — Rows of a list, inbox or table: avatar, two lines, a trailing pill, in a SkeletonGroup.
  • SkeletonRect — A box: media, a chart, a thumbnail.
  • SkeletonText — Lines of text.
  • defaultSkeletonLabels — English defaults of SkeletonLabels.

When to use Skeleton

  • Use SkeletonCard as a skeleton loading state while a product or article card loads, so the 16:9 media block, avatar, text lines and button pills occupy the same space as the real card and nothing jumps.
  • Use SkeletonList for an inbox, a user table or a settings list, where each row has an avatar, two text lines and a trailing pill, and rows count is set to match the page size.
  • Compose your own layout from Skeleton shapes inside SkeletonGroup for a dashboard widget, so one beam of light crosses every shape in step and the region is named once.
  • Skip it for tiny waits or actions that start from a click; Spinner suits a button or inline wait, and Empty state is the right component once loading has finished with no data.
  • Pair it with GlassCard for the final content, Avatar for the loaded profile, and a persistent status region if you want a reliable spoken Loaded message.

Frequently asked questions

67 components pages in all: browse them on All components.

By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .