Toast

Toast

Components

A succinct message that is displayed temporarily to provide feedback about an operation.

Toast Notifications

Provides unobtrusive user feedback following an interaction. Features support for multiple notification categories (success, error, information), dismiss triggers, and animated layout reordering.

Project saved successfully

All changes synced to remote repository.

Props Reference

PropTypeDefaultDescription
type"success" | "error" | "info""info"Visual state and accent color style
titlestring""Primary bold summary line of the notification
messagestring""Detailed descriptive notification message
durationnumber4000Auto-dismissal timeout in milliseconds
onClose() => voidundefinedCallback fired when dismissed

Screen Reader & ARIA Standards

  • Live Regions: Uses role="alert" and aria-live="polite" for non-disruptive announcements to screen reader users.
  • Accessible Action: Close buttons feature explicit aria-label="Dismiss notification" for clarity.
  • Focus Preservation: Opening a toast does not yank keyboard focus away from the active form or trigger element.