Card
A flexible and extensible content container.
When To Use
A card can be used to display content related to a single subject. The content can consist of multiple elements of varying types and sizes.
Usage
Create project
Deploy your new project in one-click.
Form content goes here...
astro
<Card class="w-[350px]">
<CardHeader title="Create project" description="Deploy your new project in one-click." />
<CardContent>
<p class="text-sm text-zinc-500">Form content goes here...</p>
</CardContent>
<CardFooter class="flex justify-between">
<Button variant="outline">Cancel</Button>
<Button>Deploy</Button>
</CardFooter>
</Card> API Reference
| Property | Description | Type | Default |
|---|---|---|---|
| variant | The style variant of the card. | "default" | "flat" | "interactive" | "default" |