DS0
Components

Alert

A non-modal, inline message for status, warnings, and errors.

Overview

Alert displays non-modal messages directly in the page content. It supports five severity variants and optional dismiss functionality.

Usage


<Alert variant="info">
  <Alert.Title>Heads up!</Alert.Title>
  <Alert.Description>You can customize this alert.</Alert.Description>
</Alert>

Variants

  • default — Neutral
  • info — Informational (blue)
  • success — Positive outcome (green)
  • warning — Caution required (yellow)
  • destructive — Error/danger (red)

API Reference

PropTypeDefaultDescription
variant'default' | 'info' | 'success' | 'warning' | 'destructive''default'Visual severity
isDismissiblebooleanfalseShow dismiss button
onDismiss() => voidCallback on dismiss
  • Toast — For transient popup notifications

On this page