Morpha UI
ComponentsFeedback

Skeleton

A placeholder shown while content is loading.

Overview

A skeleton is a low-fidelity placeholder that occupies the shape of content while it loads, reducing layout shift and signalling progress.

$ npx morpha-ui add skeleton

Examples

Card placeholder

Installation

Morpha UI components are distributed via the Morpha CLI (coming in a later step): npx morpha-ui add skeleton. In the meantime, since this is the base shadcn component, you can also add it directly:

npx shadcn@latest add skeleton

API Reference

Prop

Type

Accessibility

  • Mark purely decorative placeholders with aria-hidden so they aren't announced.
  • Communicate the loading state to assistive tech elsewhere (e.g. aria-busy on the region).

On this page