Docs
Alert

Alert

Displays a callout for user attention.

Usage

import shadcn.ui.components.Alert
import shadcn.ui.components.AlertDescription
import shadcn.ui.components.AlertTitle
Alert {
    Terminal { className = ClassName("h-4 w-4") }
    AlertTitle { +"Heads up!" }
    AlertDescription { +"All components are published in a single library." }
}

Examples

Default

Destructive