tasko/components/ui/skeleton.tsx

16 lines
264 B
TypeScript
Raw Permalink Normal View History

2024-02-16 01:49:19 +00:00
import { cn } from '@/lib/utils';
2024-02-15 02:30:10 +00:00
function Skeleton({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
2024-02-16 01:49:19 +00:00
className={cn('animate-pulse rounded-md bg-muted', className)}
2024-02-15 02:30:10 +00:00
{...props}
/>
2024-02-16 01:49:19 +00:00
);
2024-02-15 02:30:10 +00:00
}
2024-02-16 01:49:19 +00:00
export { Skeleton };