- Components
- Feedback
Alert
An inline message. Warning uses the --warning variable.
Installation#
npx shadcn add @ortaui/alertExamples#
Variants#
Heads up
You can add components with the CLI.
Storage almost full
You have used 92% of your space.
Payment failed
Check your card details and retry.
With action and without icon#
New version available
Reload to get the latest changes.
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "warning" | "destructive" | "default" | Colour. Put an icon as the first child. |