Skip to main content

Function: ToastRegion()

ToastRegion(props): any

Defined in: components/Toast/Toast.tsx:287

The Toast host — place once near the root of your app and pass the queue created with createToastQueue. Renders each queued toast as a Toast surface.

Uses vars.elevation.raised — the first component in the system that lifts off the page plane without being a full overlay.

Parameters

ParameterType
propsToastRegionProps

Returns

any

Example

<ToastRegion queue={toastQueue} />