mirror of
https://github.com/vercel/commerce.git
synced 2025-05-12 12:47:50 +00:00
14 lines
347 B
TypeScript
14 lines
347 B
TypeScript
import { VariantProps, tv } from 'tailwind-variants';
|
|
|
|
const skeleton = tv({
|
|
base: 'animate-pulse rounded bg-gray-100 w-full h-6'
|
|
});
|
|
|
|
interface SkeletonProps extends VariantProps<typeof skeleton> {
|
|
className?: string;
|
|
}
|
|
|
|
export default function Skeleton({ className }: SkeletonProps) {
|
|
return <div className={skeleton({ className })} />;
|
|
}
|