GitHub Stars

Skeleton

Use a skeleton as a placeholder while content is loading.

Installation

npx shadcn@latest add @fulldev/skeleton

Usage

import { Skeleton } from "@/components/ui/skeleton"
<Skeleton class="h-4 w-full" />

Example

Notes

  • Match the approximate size of the final content to reduce layout shift.
  • Use Skeleton for loading states, not empty states. For no-data UI, use Empty.

API Reference

See the GitHub source code for more information on props.