---
title: Card
description: Versatile card components for displaying content in a structured, visually appealing format.
featured: true
component: true
---
## Installation
CLIManual
```bash
npx @creative-tim/ui@latest add card
```
Install the following dependencies:
```bash
npm install lucide-react
```
Copy and paste the following code into your project.Update the import paths to match your project setup.
## Usage
```tsx showLineNumbers
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card"
```
## Examples
### Plain Card
A simple card with just content.
```tsx showLineNumbers {3-9}
This is a plain card with simple content. Perfect for displaying basic
information.
```
### Card with Title, Description, and Button
A card with header elements and a call-to-action button.
```tsx showLineNumbers {3-16}
Card Title
This is a brief description of the card content.
More detailed information goes here in the card content area.
```
### Blog Card
A card designed for blog post previews with image, title, excerpt, and metadata.
```tsx showLineNumbers {3-24}
March 15, 2025•5 min read
Getting Started with Next.js
Learn how to build modern web applications with Next.js, React, and
TypeScript.
```
### E-commerce Product Card
A card designed for product listings with image, pricing, and add to cart functionality.
```tsx showLineNumbers {3-39}
New
Premium Wireless Headphones
High-quality audio with active noise cancellation
(128)
$299
```
## API Reference
### Card
The root card container component.
#### Props
| Prop | Type | Default | Description |
| --------- | ----------- | ----------- | ---------------------- |
| className | `string` | `undefined` | Additional CSS classes |
| children | `ReactNode` | `undefined` | Card content |
### CardHeader
Container for card header content (title, description).
#### Props
| Prop | Type | Default | Description |
| --------- | ----------- | ----------- | ---------------------- |
| className | `string` | `undefined` | Additional CSS classes |
| children | `ReactNode` | `undefined` | Header content |
### CardTitle
The card title component.
#### Props
| Prop | Type | Default | Description |
| --------- | ----------- | ----------- | ---------------------- |
| className | `string` | `undefined` | Additional CSS classes |
| children | `ReactNode` | `undefined` | Title text |
### CardDescription
The card description component.
#### Props
| Prop | Type | Default | Description |
| --------- | ----------- | ----------- | ---------------------- |
| className | `string` | `undefined` | Additional CSS classes |
| children | `ReactNode` | `undefined` | Description text |
### CardContent
Container for the main card content.
#### Props
| Prop | Type | Default | Description |
| --------- | ----------- | ----------- | ---------------------- |
| className | `string` | `undefined` | Additional CSS classes |
| children | `ReactNode` | `undefined` | Card body content |
### CardFooter
Container for card footer content (buttons, actions).
#### Props
| Prop | Type | Default | Description |
| --------- | ----------- | ----------- | ---------------------- |
| className | `string` | `undefined` | Additional CSS classes |
| children | `ReactNode` | `undefined` | Footer content |
## Notes
- Cards are fully responsive and adapt to their container
- Use `overflow-hidden` class on Card to clip images at rounded corners
- Combine with other components like Button, Badge, and icons for rich layouts
- Based on shadcn/ui Card component with Material Tailwind design enhancements