Skip to content
RivetUI

Alert

Communicates contextual information, success, warnings, and failures.

@rivetui/alert

Preview

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/alert
Inspect registry item

Public interface

API reference

Component-specific props are listed here. Native element and Base UI props continue to pass through.

PropTypeDefault
variant"neutral" | "success" | "warning" | "destructive""neutral"
roleReact.AriaRole"alert"
classNamestring—
Rivet UI / AlertComponents engineered, not decorated.