---
title: Card
description: Container component for grouping related content
sidebar: auto
---
# Card
## Overview
The Card component is a versatile container used to group related content and actions. It consists of several sub-components that work together to create a cohesive card layout.
## Live Demo
:::demo card-variants
Shows different card layouts including header, content, footer, and gradient border variants
:::
## Components
The Card component includes the following sub-components:
| Component | Purpose |
|-----------|---------|
| `Card` | Main container with border and background |
| `CardHeader` | Header section with padding |
| `CardTitle` | Title heading element |
| `CardDescription` | Descriptive text with muted color |
| `CardContent` | Content area with top padding |
| `CardFooter` | Footer section for actions |
| `CardGradientBorder` | Card with gradient border |
## Props
All Card components accept standard HTML div attributes:
| Component | Props |
|-----------|-------|
| `Card` | `className?: string` |
| `CardHeader` | `className?: string` |
| `CardTitle` | `className?: string`, `children?: ReactNode` |
| `CardDescription` | `className?: string`, `children?: ReactNode` |
| `CardContent` | `className?: string` |
| `CardFooter` | `className?: string` |
| `CardGradientBorder` | `className?: string` |
## Usage Examples
### Basic Card
```vue
This is a basic card with content.
```
### Card with Header
```vue
Card TitleCard description goes here
Card content goes here.
```
### Complete Card with Footer
```vue
Project SettingsManage your project configuration
Configure your project settings and preferences.
```
### Card with Gradient Border
```vue
Featured Card
This card has a gradient border effect.
```
## Related Components
- [Button](/components/ui/button)
- [Badge](/components/ui/badge)
- [Separator](/components/ui/separator)