Skip to content

Commit

Permalink
feat: added Skeleton ui component
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Jan 25, 2024
1 parent 8cbb828 commit 58f4524
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/ui/Skeleton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { cx } from '@/lib/utils';

function Skeleton({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cx('animate-pulse rounded-md bg-muted', className)}
{...props}
/>
);
}

export { Skeleton };

0 comments on commit 58f4524

Please sign in to comment.