Files
cymelle/orders-frontend/src/components/ui/LoadingState.tsx
T
2026-06-13 18:12:53 +03:00

22 lines
864 B
TypeScript

type LoadingStateProps = {
title?: string;
};
export function LoadingState({
title = "Loading",
}: LoadingStateProps) {
return (
<div className="rounded-lg border bg-card p-6 text-card-foreground shadow-sm" aria-label={title}>
<div className="space-y-3">
<div className="h-4 w-36 animate-pulse rounded-md bg-muted"/>
<div className="h-8 w-full animate-pulse rounded-md bg-muted"/>
<div className="grid gap-3 md:grid-cols-3">
<div className="h-16 animate-pulse rounded-md bg-muted"/>
<div className="h-16 animate-pulse rounded-md bg-muted"/>
<div className="h-16 animate-pulse rounded-md bg-muted"/>
</div>
</div>
</div>
);
}