# Alert
Displays a non-blocking status, result, or risk message within the current content area.
## Use cases
- **Suitable**: showing a save result, a permission reminder, or a recoverable error
- **Suitable**: offering a follow-up action next to local content
- **Not suitable**: notifications that need a global queue or auto-dismiss
## Usage
```tsx
import { Alert, AlertContent, AlertDescription, AlertTitle } from "@lcui/react"
```
```tsx
Payment successful
Your payment has been processed.
```
## Composition
Use the following composition to build an `Alert`:
```
Alert
├── Icon
├── AlertContent
│ ├── AlertTitle
│ └── AlertDescription
└── AlertAction
```
## Variants
Use the `variant` prop to switch the alert's visual semantics.
## Destructive
Use `variant="destructive"` for errors that cannot be recovered or need immediate attention.
## Action
Use `AlertAction` to place a follow-up action related to the alert.
## API Reference
### Alert
The alert container; controls the overall visual variant.
### AlertContent
A vertical content container for the title and description.
### AlertTitle
The alert title.
### AlertDescription
The alert's supporting description.
### AlertAction
The layout slot for an action button.