Alert

Displays a callout for user attention.

Loading...

Installation

$npx shadcn@latest add @craftdotui/craftui-alert

Anatomy

<AlertRoot>
  <AlertTitle />
  <AlertDescription />
</AlertRoot>
<Alert.Root>
  <Alert.Title />
  <Alert.Description />
</Alert.Root>

Demo

Destructive

Loading...

Success

Loading...

Warning

Loading...

Info

Loading...

Without Icon

Loading...

With Action

Loading...

Props

AlertRoot

Prop
Type
Default

AlertTitle

Prop
Type
Default

AlertDescription

Prop
Type
Default