Skip to content
SevenUI
Sign in
On this page

Alert

Displays a message with optional title and description for the user.

Installation

Bash

Usage

Examples

With action

AlertAction pins a control — a dismiss button, an undo — to the alert’s top-right corner.

API reference

Alert

Extends div with role="alert". A direct svg child becomes the leading icon spanning both text rows.

PropTypeDefault
variant"default" | "destructive""default"

AlertTitle, AlertDescription, AlertAction

Structural wrappers extending div. AlertAction pins its content (typically a small button) to the alert’s top-right corner.

Was this page helpful?