Skeleton

Feedback

Placeholder components that indicate loading content. Use skeletons to show the shape of content while it loads, reducing perceived load time.

Import

import { Skeleton, SkeletonText, SkeletonAvatar, SkeletonCard } from "@/components/ui/skeleton";

Usage

Basic Skeleton

Simple skeleton with custom dimensions

Text Skeleton

Pre-configured text placeholder

Avatar Skeleton

Circular placeholder for avatars

Card Skeleton

Full card loading placeholder

Product List Skeleton

Realistic loading state for a product list

API Reference

PropTypeDefaultDescription
classNamestringAdditional CSS classes for custom sizing
linesnumber3Number of text lines (SkeletonText only)

Related Components