tasko/components/ui/skeleton.tsx

16 lines
264 B
TypeScript
Raw Normal View History

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