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

Transient, self-dismissing feedback.

A toast notification system for brief, non-intrusive messages at configurable screen positions.

Key features:

  • Provider/hook pattern: ToastProvider + useToast for imperative usage
  • Severities: success, info, warning, error
  • Six position options (e.g., top-right, bottom-center)
  • Auto-dismiss with configurable duration, or persistent (duration: 0)
  • Optional action slot for undo/retry buttons
Loading preview…
When to use it
  • Save / copy / send confirmations
  • Background job results
  • Non-blocking notifications
Properties
PropTypeDefaultDescription
messagestringThe main text content of the toast notification.
severity'success' | 'info' | 'warning' | 'error''info'Visual severity level that determines the color scheme and default icon.
titlestringOptional bold title displayed above the message text.
position'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right''top-right'Screen corner or edge where the toast appears.
durationnumber5000Time in milliseconds before the toast auto-dismisses. Set to 0 for persistent toasts.
actionReactNodeOptional action element (e.g., a button) rendered inside the toast for user interaction.
iconReactNode | falseCustom icon to display. Pass false to hide the default severity icon entirely.
Notes
  • Wrap your application in ToastProvider and place a ToastContainer component at the root level to enable toast rendering.
  • Set duration to 0 to create persistent toasts that remain visible until the user manually dismisses them.
  • The useToast hook returns showToast, hideToast, and clearAllToasts methods for full imperative control over notifications.
Presets