Skip to content

Skeleton

Free

Grey shapes in the place of content that is still loading, such as a card, a row, or lines of text. They pulse, so people see that the page works.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Size the Skeleton as the content that comes, so nothing moves when it arrives. The bars are hidden from screen readers, so put aria-busy on the region that loads.

comment-skeleton.tsx

Skeleton

<div>
PropTypeDefaultDescription
pulsebooleantrue
rounded"default""full""default"
From Base UIUseRenderBase UI docs
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

SkeletonText

<div>
PropTypeDefaultDescription
text"meta""prose""title""ui""ui"
linesnumber | readonly number[]3How many lines (default 3), or the width of each line as a fraction of the box (0 to 1): the measured lines of a known layout, so the bars end where the text will end.
pulsebooleantruePulse the bars (default true); false holds them still.
lineClassNamestring—Classes of each bar (a corner, rounded="full" for word pills).
rounded"default""full""default"The corner of each bar. Default default.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it where content of a known shape loads: a card, a row, an avatar, a paragraph.
  • Use SkeletonText for lines of text, so the block is as tall as the text.
  • Set pulse={false} where something else already shows that the page works.
  • For a wait with no known shape, use a Spinner. Spinner.

Skeleton and SkeletonText render <div> elements with aria-hidden="true", so a screen reader skips them.

Put aria-busy on the region that loads, and remove it when the real content arrives.

The pulse changes only opacity. Set pulse={false} where something else already moves.

Pulse
animate-pulse · 2s · cubic-bezier(0.4, 0, 0.6, 1) · repeats · opacity 100% → 50% → 100%
  1. AddedSkeleton.
Open the release