Skip to main content

LocalToastProvider

Props of LocalToastProvider

PropertyTypeDefaultDescription
ComponentReact componentToastComponentComponent used to display toasts
animationDurationnumber (ms)80Self explanatory
portalIntoHTML elementdocument.bodyDecide where we should inject toast. Generally, document.body should be fine, unless you're doing some tricks with Shadow DOM
defaultPlacement'top' | 'right' | 'bottom' | 'left'topThis might be set on per-toast basis too