Alert
Displays a short message that needs the user's attention, such as a status or an error.
components/ui/alert.tsx
Preview
Code
Heads up
Color is only used when it carries meaning.
Something went wrong
Check the form and try again.
Installation
npx betterone-ds add alertProps
| Prop | Type | Default |
|---|---|---|
| variant | "default" | "destructive" | "default" |
Accessibility
- Use a title and a description so screen readers announce the full message.
- Do not rely on color alone. Pair the destructive variant with clear wording.

