Files
NextChair/src/components/ui/card.tsx
T
Stefan Lazic d3bbad09c6 Fixes
Fixed an issue where media manager only shows files uploaded in specific sections.

Fixed an issue with icon picker names.

Removed jumbo rounding and a few other style tweaks.
2026-08-05 09:25:59 +01:00

29 lines
1012 B
TypeScript

import type { HTMLAttributes } from "react";
import { cn } from "@/lib/utils/cn";
/**
* The single most-repeated visual pattern across the templates: a white
* surface, hairline border, jumbo radius. See docs/implementation-plan.md
* §7 ("Cards" — strongest, most reusable element across the set).
*/
export function Card({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn("rounded-md border border-line bg-white shadow-sm", className)}
{...props}
/>
);
}
export function CardHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
return <div className={cn("p-6 pb-0", className)} {...props} />;
}
export function CardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
return <div className={cn("p-6", className)} {...props} />;
}
export function CardFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
return <div className={cn("flex items-center gap-3 p-6 pt-0", className)} {...props} />;
}