Skip to content

Toast

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

Group: Overlays · Kind: native

open

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-toast on Web
exponential-ui-toast on iOS
exponential-ui-toast on Android
exponential-ui-toast on Desktop
Prop Type Required Bindable Description
title string yes yes The notice.
description string – yes Detail under the notice.
type info | success | warning | error – – Severity: icon and tone (error interrupts readers). Default "info".
open boolean – yes Whether it shows; bind it so the host learns of a dismissal. Default true.
duration number – – Ms until it dismisses itself; 0 = never. Default 5000.
actionLabel string – – A button label; pressing it fires action.
dismissible boolean – – Shows the close control. Default true.
  • on.dismiss: runs an action
  • on.action: runs an action
  • on.change: runs an action

None.

none

No basic catalog component maps here.

A native component: every renderer paints it directly.

Role: status

status (polite); alert (assertive) for type error

Keys Action
– Never takes focus on appear; Tab reaches its action and close
Escape on a focused toast dismiss
– Hover or focus pauses the duration timer

Recipe parts: Toast/root Toast/icon Toast/title Toast/description Toast/action Toast/close

Keyed by: type :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Dialog · Drawer · DockCard · AlertDialog · Popover · Tooltip · Menu