Components / Overlays

Toast native

A transient notice in the toast layer; render one per notice with open bound.

Children
none
Loading the renderer…
Toast rendered by the React renderer on Web
Web React
Toast rendered by the SwiftUI renderer on iOS
iOS SwiftUI
Toast rendered by the Compose renderer on Android
Android Compose
Toast rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-toast, painted by each native renderer.

PropTypeDefaultDescription
titlerequiredbindstring–The notice.
descriptionbindstring–Detail under the notice.
typeinfo | success | warning | error"info"The severity, picking icon and tone (error interrupts screen readers).
openbindbooleantrueWhether it shows; bind it so the host learns of a dismissal.
durationnumber5000Ms until it dismisses itself; 0 = never.
actionLabelstring–A button label; pressing it fires action.
dismissiblebooleantrueShows the close control.
NameKind
on.dismissevent: runs an action
on.actionevent: runs an action
on.changeevent: runs an action
Role
status
Semantics
status (polite); alert (assertive) for type error
KeysAction
–Never takes focus on appear; Tab reaches its action and close
Escape on a focused toastdismiss
–Hover or focus pauses the duration timer
Recipe parts
Toast/rootToast/iconToast/titleToast/descriptionToast/actionToast/close
Keyed by
type:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme