Toast
A temporary notification that appears on screen to provide feedback or information.Anatomy
Components
Toast.Provider
Provides toast context and manages toast queue.Duration in milliseconds before auto-dismissing toasts
Maximum number of toasts to display at once
Toast.Portal
Portal that renders toasts outside the normal DOM hierarchy.Optional container element to render toasts into
Toast.Viewport
Container that positions toasts on screen.Where to position the toast viewport. Options:
top-right, top-left, bottom-right, bottom-left, top-center, bottom-centerAdditional CSS classes
Toast.Root
The root container for a toast notification.Visual variant. Options:
card, compactControlled open state
Callback when open state changes
Additional CSS classes
Toast.Content
Content container for card variant toasts.Additional CSS classes
Toast.CompactContent
Content container for compact variant toasts.Additional CSS classes
Toast.Title
The title text of the toast.Additional CSS classes
Toast.Description
The description text of the toast.Additional CSS classes
Toast.Icon
Icon that indicates the tone of the toast.Visual tone that determines the icon and color. Options:
default, info, success, warning, dangerAdditional CSS classes
Toast.Close
Button to dismiss the toast.Additional CSS classes
Toast.Action
Action button for card variant (tertiary style).Accessible alternative text describing the action
Additional CSS classes
Toast.CompactAction
Action button for compact variant (link style).Accessible alternative text describing the action
Additional CSS classes
Toast.TextWrapper
Groups title and description for card variant.Additional CSS classes
Toast.CompactTextWrapper
Groups title and description for compact variant.Additional CSS classes
Toast.Actions
Container for action buttons in card variant.Additional CSS classes
Toast.CompactActions
Container for action buttons in compact variant.Additional CSS classes