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" |