Skeleton
The Skeleton Use to show a placeholder while content is loading.
import { Skeleton } from "tawuniya";
👉 View in Storybook
Basic Example​
import { Skeleton } from "tawuniya";
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>
);
}
Card​
import { Skeleton } from "tawuniya";
export function SkeletonCard() {
return (
<div className="flex flex-col space-y-3">
<Skeleton className="h-[125px] w-[250px] rounded-xl" />
<div className="space-y-2">
<Skeleton className="h-4 w-[250px] bg-muted-foreground/20" />
<Skeleton className="h-4 w-[200px] bg-muted-foreground/20" />
</div>
</div>
);
}