19 lines
395 B
TypeScript
19 lines
395 B
TypeScript
import * as React from 'react';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
const Skeleton = React.forwardRef<
|
|
HTMLDivElement,
|
|
React.HTMLAttributes<HTMLDivElement>
|
|
>(({ className, ...props }, ref) => {
|
|
return (
|
|
<div
|
|
ref={ref}
|
|
className={cn('animate-pulse rounded-md bg-muted/50', className)}
|
|
{...props}
|
|
/>
|
|
);
|
|
});
|
|
Skeleton.displayName = 'Skeleton';
|
|
|
|
export { Skeleton };
|