ToastProvider
since v10.2.0App-level toast queue. Wrap the app (or a subtree) and call useToast() to
fire notifications. Renders a fixed, stacked viewport at placement.
The standalone {@link Toast} stays available as the low-level unit; prefer
useToast for app notifications.
Install
Add the package and import the component.
pnpm add @hey-mike/tungstenpnpm add @hey-mike/tungstenimport { ToastProvider } from '@hey-mike/tungsten';import { ToastProvider } from '@hey-mike/tungsten';Props
Surface specific to <ToastProvider />.
| Prop | Type | Default | Description |
|---|---|---|---|
| placement | "top-left" | "top" | "top-right" | "bottom-left" | "bottom" | "bottom-right" | bottom | Corner/edge the stack anchors to. Default 'bottom' (matches the standalone Toast). |
| max | number | 3 | Max simultaneously-visible toasts; the rest queue and appear as these dismiss. Default 3. |