Initial commit
This commit is contained in:
17
components/ui/skeleton.tsx
Normal file
17
components/ui/skeleton.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import type * as React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"animate-shimmer rounded-md bg-gradient-to-r from-muted/60 via-muted to-muted/60 bg-[length:200%_100%]",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export { Skeleton };
|
||||
Reference in New Issue
Block a user