Used to show a placeholder while content is loading.
Default skeleton for avatar and text.
import { Skeleton } from "@/components/ui/skeleton"
export function SkeletonDemo() {
return (
<div className="flex items-center space-x-4">
<Skeleton className="h-12 w-12 rounded-full" />
<div className="space-y-2">
<Skeleton className="h-4 w-[250px]" />
<Skeleton className="h-4 w-[200px]" />
</div>
</div>
)
}| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | - | Additional CSS classes to style the skeleton. |