Files
NextChair/src/components/ui/card.tsx
T
Stefan Lazic 090646fdfd Phase 2
Base app architecture:

    Route groups for customer, staff and owner.
* Reusable design system with around 20 UI components.
* Complete Prisma schema.
* Authentication with email/password and Google.
* Role and permission model.
* Protected routes.
* Clean separation between features, services, components and shared utilities.
2026-08-02 17:47:23 +01:00

29 lines
1015 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-jumbo 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} />;
}