@agala-labs/ui
Toast
Displays brief, non-blocking feedback from a single root provider.
Examples
Default
toastManager.show({ message: 'Changes saved', variant: 'success' })Import
import { AgalaToastProvider, toastManager } from '@agala-labs/ui'API
| Prop | Type | Default | Description |
|---|---|---|---|
message | string | — | Required toast message. |
variant | 'default' | 'success' | 'warning' | 'danger' | 'default' | Semantic treatment. |
duration | number | — | Visible duration in milliseconds; 0 persists. |
action | { label; onClick } | — | Optional toast action. |
Accessibility
Mount one ToastProvider. Keep messages concise and do not use a toast as the only location for recoverable form errors.