We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e2f5ce commit 9b9207dCopy full SHA for 9b9207d
components/ui/skeleton-card.tsx
@@ -0,0 +1,13 @@
1
+import { Skeleton } from "@/components/ui/skeleton"
2
+
3
+export function SkeletonCard() {
4
+ return (
5
+ <div className="flex flex-col space-y-3">
6
+ <Skeleton className="h-[125px] w-full rounded-xl" />
7
+ <div className="space-y-2">
8
+ <Skeleton className="h-4 w-full max-w-[250px]" />
9
+ <Skeleton className="h-4 w-1/2 max-w-[200px]" />
10
+ </div>
11
12
+ )
13
+}
components/ui/skeleton.tsx
+import { cn } from "@/lib/utils"
+function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
+ <div
+ data-slot="skeleton"
+ className={cn("bg-accent animate-pulse rounded-md", className)}
+ {...props}
+ />
+export { Skeleton }
0 commit comments