A content container drawn as a white Mac OS X content view seated into the window with a 1px edge and light lip, or as an Aqua group box. Header, title, description, action, content and footer slots.
Installation
Requires the theme. Register the @skeuomorph namespace and add @skeuomorph/skeuomorph first, as shown in the installation guide. The CLI also pulls it in as a dependency.
Without the namespace, install straight from the URL:
Usage
import {
Card,
CardAction,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card"<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card Description</CardDescription>
<CardAction>Card Action</CardAction>
</CardHeader>
<CardContent>
<p>Card Content</p>
</CardContent>
<CardFooter>
<p>Card Footer</p>
</CardFooter>
</Card>Examples
With form
Group box
variant="group" draws an Aqua group box: a faint fill, a hairline edge and 5px corners, for grouping related controls in a preferences pane.
<Card variant="group">...</Card>