2. Toast Notifications
Types
| Type | When | Color/Icon |
|---|---|---|
| Success | Action completed | Green ✓ |
| Error | Action failed | Red ✕ |
| Warning | Action completed with caveat | Amber ⚠ |
| Info | Neutral information | Blue ℹ |
Every async action must give the user feedback. Success, error, and warning notifications must be clear, consistent, and never silently disappear before the user can read them.
Click the buttons below to trigger real toasts and see inline banners. Toasts appear top-right, stack, auto-dismiss, and can be closed manually.
Each toast auto-dismisses after 4–6 seconds. Hover to pause. Click × to dismiss early.
Inline banners stay visible until the user dismisses them. Use for errors or confirmations that require the user's attention before continuing.
| Type | Use When | Duration |
|---|---|---|
| Toast | Async action completed — create, update, delete, send | 4–5 seconds, auto-dismiss |
| Inline Banner | Form-level error from API or permission error on a page | Persistent until dismissed or resolved |
| Persistent Alert | Account-level issue requiring attention | Persistent, manual dismiss |
| Field Error | Specific form field validation failure | Until the field is corrected |
| Confirmation Dialog | Before a destructive action | User must respond |
| Type | When | Color/Icon |
|---|---|---|
| Success | Action completed | Green ✓ |
| Error | Action failed | Red ✕ |
| Warning | Action completed with caveat | Amber ⚠ |
| Info | Neutral information | Blue ℹ |
Displayed inside the page or form — not floating. Used for errors that require the user's attention before they can continue.