Alert

A compound alert component for surfacing inline feedback messages with an optional title, description, icon slot, and action button.

Default
No Icon
Variants
With Action
With Icon
With Link

Installation

npx shadcn@latest add @byronwade/alert

Props

PropTypeDefaultDescription
variant"default" | "destructive""default"Controls the color style of the alert; use "destructive" for error or warning states.
classNamestringAdditional CSS class names merged onto the root element.