Toast
Notification toasts for feedback messages.
Default
ToastProvider Props
| Prop | Type | Default | Description |
|---|
| children | ReactNode | — | App content. |
| position | "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | "bottom-right" | Toast position. |
toast() Options
| Prop | Type | Default | Description |
|---|
| title | string | — | Toast title. |
| description | string | — | Additional message. |
| variant | "default" | "success" | "danger" | "warning" | — | Toast style. |
| duration | number | 5000 | Auto-dismiss in ms (0 = persistent). |
useToast Return Value
| Prop | Type | Default | Description |
|---|
| toast | (options) => void | — | Show a toast notification. |
| dismiss | (id: string) => void | — | Dismiss a toast by ID. |