DSNiemeyer
Language

Alert

Contextual message to inform, warn, or show errors.

Variants

Props (Alert root)

PropTypeDefaultDescription
variantdefault | info | success | warning | destructivedefaultVisual style. Semantic tokens: info, success, warning, destructive (error).
classNamestringOptional; merged with the root layout and variant.

Composition and more examples (AlertTitle, AlertDescription, actions): shadcn/ui — Alert