Skip to content

Commit

Permalink
feat: simple Card component
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Nov 19, 2024
1 parent ce229b9 commit e397e95
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/app/components/ui/Card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { cn } from "lib/cn";
import { type HTMLAttributes, forwardRef } from "react";

const Card = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
<div
ref={ref}
className={cn(
"overflow-hidden rounded-2xl bg-card text-foreground shadow-md",
className,
)}
{...props}
/>
),
);
Card.displayName = "Card";

export { Card };

0 comments on commit e397e95

Please sign in to comment.