Skip to content
PixiKit

Toast Stack

Toasts in a pile that fans out under the pointer. Each has a clock that pauses while you read, closes with a sideways drag, can carry one action such as Undo, and can follow a promise from running to done.

pixikit.com/docs/app-ui/feedback/toast-stack

Customize

Placement
Duration5000ms
Max3
Expand
Width360px
Gap10px
Offset16px
Show progress
Swipe
Close button
Contained

Props

13
NameTypeDefaultDescription
placement"top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right""bottom-right"The corner or edge the toasts sit in.
durationnumber5000Milliseconds a toast stays, unless it sets its own.
maxnumber3How many toasts show at once; older ones wait behind.
expand"hover" | "always""hover"`hover` fans the pile out under the pointer, `always` keeps it fanned out.
widthnumber360The width of a toast, in px; never wider than the screen.
gapnumber10Space between fanned out toasts, in px.
offsetnumber16Space from the edges, in px.
showProgressbooleantrueA line that runs out as the toast's time does.
swipebooleantrueLets a toast be dragged sideways to close it.
closeButtonbooleantrueShows a close button on every toast.
containedbooleanfalseSits inside its nearest positioned parent, not the window.
ariaLabelstring"Notifications"Name for the region, read by screen readers.
classNamestringNone

Related