Toggle Sidebar B
header.lightDarkMode D

Alert

Inline message for status, warnings, or callouts. Two visual variants and slots for an icon, title, and description.

Default

Neutral alert with icon, title, and body.

Destructive

Use for failures and irreversible actions.

Without icon

Drop the leading icon for plain text alerts.

API Reference

Props, events, and slots for each sub-component.

Alert

Props

PropTypeDefaultDescription
variant"default" | "destructive""default"Visual tone.
classstringExtra classes, merged with cn().

AlertTitle / AlertDescription

Props

PropTypeDefaultDescription
classstringOverride typography or spacing.