Alert
Communicates contextual information, success, warnings, and failures.
@rivetui/alertPreview
Explore each composition interactively, then open its code in the same context.
Default
States
Registry
Installation
Add the component source and its declared dependencies with the shadcn CLI.
Install component
bunx --bun shadcn@latest add @rivetui/alertPublic interface
API reference
Component-specific props are listed here. Native element and Base UI props continue to pass through.
| Prop | Type | Default |
|---|---|---|
variant | "neutral" | "success" | "warning" | "destructive" | "neutral" |
role | React.AriaRole | "alert" |
className | string | — |