View fulldotdev/ui on GitHub

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-[20px] w-[100px] rounded-full" />

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.

Avatar

Card

Text

Form

Table

RTL

Set dir="rtl" on a parent element.

API Reference

Source: src/components/ui/skeleton

Skeleton renders a div with data-slot="skeleton" and passes all other attributes through.