Skip to content
Feedback

Alert

A callout message. Four semantic variants — informational, success, warning, error — each with its own colour and icon.

Alert Types

Import

import {
  Alert,
  AlertTitle,
  AlertDescription,
} from "@mikenotthepope/substrateui"

Composition

Alert
├── AlertTitle
└── AlertDescription

API Reference

PropTypeDefaultDescription
variant"default" | "destructive" | "success" | "warning" | "info""default"The visual style of the alert. Each variant uses its corresponding status color from the design tokens.
classNamestringAdditional CSS classes to apply to the alert element.