# Card
A container for related information and actions, composed of a header, content, and footer.
## Use cases
- **Use**: forms, account details, settings, article summaries, and other grouped content
- **Use**: cards that need a lightweight action such as edit or more in the top-right corner
- **Don't use**: large expandable/collapsible content (use `dialog` or a dedicated page)
- **Don't use**: short status messages (use `alert` or `toast`)
## Usage
```tsx
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@lcui/react"
```
```tsx
Card Title
Card Description
Card Content
Card Footer
```
## Composition
Use the following composition to build a `Card`:
```
Card
├── CardHeader
│ ├── CardTitle
│ ├── CardDescription
│ └── CardAction
├── CardContent
└── CardFooter
```
## Examples
### Small
Use `size="sm"` for tighter spacing and a smaller title.
### Image
Place cover content before `CardHeader`. LCUI currently has no standalone image widget, so the example uses a solid placeholder `div` with an absolutely positioned overlay to simulate a cover image.
## API Reference
### Card
The card container manages its size and child layout.
### CardHeader
The card header holds the title, description, and optional action.
### CardTitle
The card title.
### CardDescription
Supporting text below the title.
### CardAction
The top-right action area in the header.
### CardContent
The main card body.
### CardFooter
The bottom area for actions or secondary content.