Card
柔軟で拡張可能なコンテンツコンテナ。
いつ使用するか
カードは、単一の主題に関連するコンテンツを表示するために使用できます。コンテンツは、さまざまなタイプとサイズの複数の要素で構成できます。
使用法
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 リファレンス
| プロパティ | 説明 | タイプ | デフォルト |
|---|---|---|---|
| variant | The style variant of the card. | "default" | "flat" | "interactive" | "default" |