Toast
feedbackTemporary notification toast/snackbar with variant icons (success/warning/error/info), auto-dismiss progress bar, close button, stacking container, and ARIA live regions. Fundamental feedback primitive for pipeline events, brain sync status, and system alerts.
Import
import { Toast } from "packages/ui/src";Props
ToastProps
| Prop | Type | Required |
|---|---|---|
toast | ToastItem | Yes |
onDismiss | (id) => void) + ToastContainerProps (toasts: ToastItem[], onDismiss?, position?: top-right|top-left|bottom-right|bottom-left | No |
Examples
Toast / Snackbar
Temporary notification system with variant icons, auto-dismiss progress, stacking container, and ARIA live regions. 20th shared component — 16 dedicated tokens.
Interactive Playground
Operation succeeded
This is a detailed description of the notification.
All Variants
Success notification
This is a success toast with a description.
Warning notification
This is a warning toast with a description.
Error notification
This is a error toast with a description.
Info notification
This is a info toast with a description.
With Auto-Dismiss Progress
Auto-dismissing
Progress bar shows remaining time.
Stacked Container (Live)
Real-World Use Cases
Pipeline Notifications
Token build complete
360 tokens compiled to CSS.
Brain Sync Status
Brain push failed
OAuth token expired. Run gcloud auth login.
Design Drift Alert
Drift score: 99.84
1 unused token in ProgressBar.