Alert

Displays a short message that needs the user's attention, such as a status or an error.

components/ui/alert.tsx

Installation

npx betterone-ds add alert

Props

PropTypeDefault
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.