Feedback & Status

Alert

Displays a callout for user attention. Compose an Alert from an optional icon, an AlertTitle, and an AlertDescription.

Danger#

Use variant="danger" for errors and dangerous or failed operations.

Without icon#

Icons are optional children — omit the icon and the content spans the full width.

Title only#

Component props#

Alert#

NameTypeDescription
variant'default' | 'danger'Visual style (default: "default")
childrenReactNodeAn optional svg icon, AlertTitle, and AlertDescription

Alert, AlertTitle, and AlertDescription all accept standard div props including className, and expose data-slot="alert", data-slot="alert-title", and data-slot="alert-description" attributes for styling.