Components
Toast
Temporary notification messages that auto-dismiss. Success, warning, error, and info variants.
Shows a temporary message that auto-dismisses after a configurable duration. Includes a useToast hook for managing a queue of notifications.
Installation
Usage
Examples
All variants
Permanent toast (duration 0)
Single Toast component
Props
Toast
| Prop | Type | Default | Description |
|---|---|---|---|
message | string | — | Notification text (required) |
variant | 'success' | 'warning' | 'error' | 'info' | 'info' | Color and icon style |
duration | number | 3000 | ms before auto-dismiss. 0 = permanent |
onDismiss | () => void | undefined | Called when dismissed |
theme | InkUITheme | darkTheme | Color theme |