Skip to content
LuoForge/Tungsten
Components/ToastProvider·Experimental

ToastProvider

since v10.2.0

App-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/tungsten
pnpm add @hey-mike/tungsten
import { ToastProvider } from '@hey-mike/tungsten';
import { ToastProvider } from '@hey-mike/tungsten';

Props

Surface specific to <ToastProvider />.

PropTypeDefaultDescription
placement"top-left" | "top" | "top-right" | "bottom-left" | "bottom" | "bottom-right"bottomCorner/edge the stack anchors to. Default 'bottom' (matches the standalone Toast).
maxnumber3Max simultaneously-visible toasts; the rest queue and appear as these dismiss. Default 3.

Source