mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
add suspense and skeletons to order details
This commit is contained in:
13
components/ui/skeleton.tsx
Normal file
13
components/ui/skeleton.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
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 })} />;
|
||||
}
|
Reference in New Issue
Block a user