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| Name | Type | Default | Description |
|---|---|---|---|
placement | "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "bottom-right" | The corner or edge the toasts sit in. |
duration | number | 5000 | Milliseconds a toast stays, unless it sets its own. |
max | number | 3 | How 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. |
width | number | 360 | The width of a toast, in px; never wider than the screen. |
gap | number | 10 | Space between fanned out toasts, in px. |
offset | number | 16 | Space from the edges, in px. |
showProgress | boolean | true | A line that runs out as the toast's time does. |
swipe | boolean | true | Lets a toast be dragged sideways to close it. |
closeButton | boolean | true | Shows a close button on every toast. |
contained | boolean | false | Sits inside its nearest positioned parent, not the window. |
ariaLabel | string | "Notifications" | Name for the region, read by screen readers. |
className | string | None |