0
Components
API reference

Toast

Non-blocking stacked and anchored notifications with spring physics, swipe-to-dismiss, and promise state transitions.

Installation

Usage

Mount ToastProvider (and optionally AnchoredToastProvider) once in your root layout:

Trigger notifications anywhere using toastManager:

Examples

Success

Error

With Action

Promise & Loading

Anchored

API Reference

ToastProvider

Wraps Base UI Toast.Provider and renders the floating toast stack viewport.

PropTypeDefaultDescription
position"top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right""bottom-right"Viewport corner or edge where toasts stack
timeoutnumber5000Auto-dismiss duration in milliseconds
limitnumber3Maximum number of visible stacked toasts
portalPropsToast.Portal.Props-Props forwarded to the internal Toast.Portal

AnchoredToastProvider

Renders toasts anchored to specific DOM elements via anchoredToastManager.

toastManager / anchoredToastManager

Imperative manager instances created with Toast.createToastManager().

MethodDescription
add(options)Creates a toast and returns its id
update(id, options)Updates an existing toast by id
close(id)Dismisses a toast by id
promise(promise, state)Transitions a toast through loading, success, and error

© taut ui — built with Base UI and Tailwind CSS v4.