Skip to content

Commit

Permalink
feat(ui): add skeleton loader
Browse files Browse the repository at this point in the history
  • Loading branch information
timi-codes committed May 22, 2024
1 parent dac0720 commit 211855a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions client/src/components/ui/skeleton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { cn } from "@/lib/utils"

function Skeleton({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn("animate-pulse rounded-md bg-slate-900/10 dark:bg-slate-50/10", className)}
{...props}
/>
)
}

export { Skeleton }

0 comments on commit 211855a

Please sign in to comment.