Alert
Contextual message to inform, warn, or show errors.
Info
New features are available in the system.
Variants
Info
New features are available in the system.
Success
The action completed successfully.
Warning
Check the data before you continue.
Error
The action could not be completed.
Props (Alert root)
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | default | info | success | warning | destructive | default | Visual style. Semantic tokens: info, success, warning, destructive (error). |
| className | string | — | Optional; merged with the root layout and variant. |
Composition and more examples (AlertTitle, AlertDescription, actions): shadcn/ui — Alert