Alert
An inline message that stays in the page flow. Four variants and an optional dismiss button.
FeedbackDumb extras
Needs the @dumb registry in components.json and the style tokens. See Installation.
API reference
Props marked “extra” are Dumb UI additions. Everything else matches shadcn/ui.
Alert
| Prop | Type | Default |
|---|---|---|
| variant | "default" | "success" | "warning" | "destructive"Tone of the message. Destructive uses role=alert; others role=status. | "default" |
| onDismissextra | () => voidRenders a close button. | - |
| dismissLabelextra | stringAccessible label for the close button. | "Dismiss" |