/** * Skeleton - Loading skeleton components for web * * Components: * - Skeleton: Basic skeleton element * - SkeletonCard: Card-style skeleton * - SkeletonList: List of skeleton items * - SkeletonText: Text skeleton with multiple lines * - SkeletonAvatar: Avatar/profile picture skeleton * * Features: * - Animated shimmer effect * - Multiple variants and sizes * - Composable building blocks * - Tailwind CSS styling * * @example * ```tsx * if (isLoading) { * return ; * } * ``` */ import { cn } from '@/lib/utils'; /** * Skeleton - Base skeleton component with shimmer animation */ interface SkeletonProps { className?: string; variant?: 'rectangular' | 'circular' | 'text'; } export function Skeleton({ className, variant = 'rectangular', }: SkeletonProps) { const variantClasses = { rectangular: 'rounded', circular: 'rounded-full', text: 'rounded h-4', }; return (