import * as React from 'react'; import { cn } from '@/lib/utils'; export type CardProps = React.ComponentProps<'div'>; /** * Surface that groups related content. * * Compose it from the parts below rather than styling a bare `
`, so * padding and rhythm stay consistent across the product: * * ```tsx * * * Billing * Manage your plan * * * … * … * * ``` */ function Card({ className, ...props }: CardProps) { return (
); } /** Top region. Switches to a two-column grid when a `CardAction` is present. */ function CardHeader({ className, ...props }: CardProps) { return (
); } function CardTitle({ className, ...props }: CardProps) { return (
); } function CardDescription({ className, ...props }: CardProps) { return (
); } /** Trailing control in the header — a button, menu or badge. */ function CardAction({ className, ...props }: CardProps) { return (
); } function CardContent({ className, ...props }: CardProps) { return
; } function CardFooter({ className, ...props }: CardProps) { return (
); } export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };