839 B
839 B
| title | description |
|---|---|
| Card | Displays a card with header, content, and footer. |
Installation
npx shadcn-vue@latest add card
- Install
radix-vue:
npm install radix-vue
- Copy and paste the component source files linked at the top of this page into your project.
Usage
<script setup lang="ts">
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from '@/components/ui/card'
</script>
<template>
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card Description</CardDescription>
</CardHeader>
<CardContent>
Card Content
</CardContent>
<CardFooter>
Card Footer
</CardFooter>
</Card>
</template>