Search documentation

Search the documentation and open a page.

Displays a callout for user attention.

Loading...

Installation

pnpm dlx shadcn@latest add @wirekyt/alert

Composition

Alert ├── icon (optional) ├── AlertTitle ├── AlertDescription (optional) └── AlertAction (optional)

Examples

Default

Loading...

Destructive

Loading...

Title Only

Loading...

With Action

Loading...

With List

Loading...

API Reference

Alert

PropTypeDefaultDescription
variant"default" | "destructive""default"Controls the alert's visual treatment.

Utilities and Supporting Types

ExportAPI
alertVariantsStyle recipe used to reuse the component variants.