Pilipinas Interface

Foundation

  • Overview
  • Get Started
  • Colors
  • Typography
  • Icons
  • Layout & Spacing
  • States & Feedback
  • Motion & Transitions
  • Expressions

Components

  • Overview
  • Accordion
  • Alert
  • Avatar
  • Badge
  • Banner
  • Breadcrumb
  • Button
  • Card
  • Checkbox
  • Code Block
  • Combobox
  • Command Menu
  • Dialog
  • Popover
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Skeleton
  • Switch
  • Table
  • Tabs
  • Text Field
  • Tooltip

Resources

  • Registry

Components

Skeleton

A quiet placeholder that holds the shape of content while it loads. It says where content will appear without inventing information.

Preview

Application summary

<Skeleton className="h-4 w-40" />
<SkeletonText lines={3} />

Usage

A loading placeholder where the layout is already known.

Do and don't

  • Do. Keep a heading or status line so the region still makes sense.
  • Don't. Show it for instant responses or leave it in place permanently.

Composition

Skeleton is a single placeholder block. SkeletonText renders a short run of lines, with the last line narrower so it reads as prose. Compose them into the shape of the real content rather than wrapping a fully built card in a loading state.

Props

  • Skeleton: standard span attributes; use className for width, height and radius.
  • SkeletonText: lines (default 3) and className.

Behavior and states

A skeleton is hidden from assistive technology with aria-hidden. The surface uses the shared selected fill and the radius from the shape context. The pulse is removed under reduced motion, leaving a static placeholder.

Accessibility

Keep the surrounding region understandable while placeholders are present: a heading, a status line such as “Loading your applications”, or an aria-busy container. Never put readable labels inside a skeleton, and never use it as permanent decoration.

Responsive

Set widths with relative classes so the placeholder follows the container. The default text lines use full width with a shorter final line, which holds up on narrow panels.

Related

States & Feedback defines loading as a state, Progress reports measurable work, and Motion & Transitions covers reduced motion.

← PreviousSelectNext →Switch

Install

npx shadcn@latest add @pilipinas/skeleton

For your coding agent