Card
A white box on a 1px line. No shadow, no radius.
Login to your account
Enter your email below to login to your account
Usage
import {
Card,
CardAction,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@zynactra/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
Choice cards
Wrap each Card in a <label> with a radio inside to make the whole card pick an option. In themes that wear the signature, the checked card gets ink corner ticks and the focused one heat ticks. Mark a selected card without a radio with data-selected or aria-current.
Guidelines
- Cards are structure, not decoration: one card per thing the user can act on.
- Stats inside cards use
font-mono. - Card footers are sunken (
bg-surface-sunken) and hold actions, primary last.