Card
Card surface with header / content / footer slots.
Usage
TSX
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@aeontel/ui";
<Card>
<CardHeader>
<CardTitle>Billing</CardTitle>
<CardDescription>Manage your plan and invoices.</CardDescription>
</CardHeader>
<CardContent>Body content here.</CardContent>
<CardFooter>
<Button>Upgrade</Button>
</CardFooter>
</Card>;Exports
Card
Card surface container.
TypeScript
Card(props: React.ComponentProps<"div"> & VariantProps<typeof cardVariants>): JSX.ElementProps
| Prop | Type | Default | Description |
|---|---|---|---|
variant? | "outline" | "solid" | null | undefined | "solid" | |
size? | "default" | "sm" | null | undefined | "default" |
CardHeader
Top section of a card (title + description + action).
TypeScript
CardHeader(props: React.ComponentProps<"div">): JSX.ElementCardTitle
Card title text.
TypeScript
CardTitle(props: React.ComponentProps<"div">): JSX.ElementCardDescription
Subtle description line under the card title.
TypeScript
CardDescription(props: React.ComponentProps<"div">): JSX.ElementCardAction
Action slot (usually a button) aligned to the card header.
TypeScript
CardAction(props: React.ComponentProps<"div">): JSX.ElementCardContent
Main body of the card.
TypeScript
CardContent(props: React.ComponentProps<"div">): JSX.ElementCardFooter
Footer section of the card, typically with action buttons.
TypeScript
CardFooter(props: React.ComponentProps<"div">): JSX.Element