Documentation

Asgard

Getting started

Theming

Guides

Layout

Docking

Inputs & forms

Button

Switch

Checkbox

Radio

Select

Slider

TextBox

Upload

ImageCropper

Pickers

Color picker

Calendar

Time picker

DateTime input

Data display

Card

Accordion

Typography

Progress

DataTable

TreeView

SyntaxColor

MarkdownRenderer

Terminal

Layout & docking

Grid

Splitter

SDiv

Dock

Theme switcher

Media query

Feedback & overlays

Alert

Toast

Tooltip

Popups

Drawer

FloatingPanel

FloatingWindow

Navigation & chrome

Breadcrumb

Stepper

Toolbar

Ribbon

ContextMenu

FeatureTour

Documentation

Asgard

Getting started

Theming

Guides

Layout

Docking

Inputs & forms

Button

Switch

Checkbox

Radio

Select

Slider

TextBox

Upload

ImageCropper

Pickers

Color picker

Calendar

Time picker

DateTime input

Data display

Card

Accordion

Typography

Progress

DataTable

TreeView

SyntaxColor

MarkdownRenderer

Terminal

Layout & docking

Grid

Splitter

SDiv

Dock

Theme switcher

Media query

Feedback & overlays

Alert

Toast

Tooltip

Popups

Drawer

FloatingPanel

FloatingWindow

Navigation & chrome

Breadcrumb

Stepper

Toolbar

Ribbon

ContextMenu

FeatureTour

Feedback & overlays

Communicate status inline.

Alert displays contextual feedback banners with four severity levels and three visual variants.

Key features:

  • Severities: success, info, warning, error
  • Variants: standard, outlined, filled
  • Custom icons or icon={false} to hide defaults
  • Dismissible with onClose callback
  • action slot for embedding buttons or links
Loading preview…
When to use it
  • Form-level success or error summaries
  • Inline warnings before a risky action
  • Persistent informational banners
  • Alerts with an inline action (Undo, Retry)
Properties
PropTypeDefaultDescription
severity'success' | 'info' | 'warning' | 'error''info'The severity level that determines the color and default icon.
variant'standard' | 'outlined' | 'filled''standard'The visual style variant of the alert.
titlestringOptional bold title text displayed above the alert content.
childrenReactNodeThe main content of the alert message.
iconReactNode | falseCustom icon element, or false to hide the default severity icon entirely.
actionReactNodeCustom action element (e.g., a button) rendered in the action area of the alert.
onClose() => voidCallback fired when the close button is clicked. When provided, a close button is automatically shown.
Notes
  • Set the icon prop to false to completely hide the default severity icon.
  • The action prop renders a custom element (typically a Button) in the alert action area, useful for undo or retry flows.
  • Providing an onClose callback automatically renders a close button; omit it for non-dismissible alerts.
Presets