Toast Pile
Notifications arriving in a quiet app: toasts slide in and stack with depth, fan out into a list on hover, answer an action and fly off when swiped. Visitors can send more, close, answer or drag toasts away, all from the keyboard too.
pixikit.com/docs/blocks/illustrations/toast-pile
Customize
Limit3
Life4.0s
Side
Autoplay
Loop
Speed1.0x
Height360px
Width560px
Props
14| Name | Type | Default | Description |
|---|---|---|---|
toasts | ToastPileToast[] | DEFAULT_TOASTS | The toasts that arrive, one after the other; the send button cycles through them. |
limit | number | 3 | The most toasts shown at once. |
life | number | 4 | How long a toast stays, in seconds. |
side | "left" | "right" | "right" | The corner the toasts arrive in. |
sendLabel | string | "Send one" | The label of the send button in the top bar. |
closeLabel | string | "Dismiss" | What screen readers call each close button. |
regionLabel | string | "Notifications" | The accessible name of the notifications region. |
autoplay | boolean | true | Starts when the scene scrolls into view; when off it waits for a click on replay. |
loop | boolean | true | Plays again from the start after the hold. |
speed | number | 1 | Playback speed multiplier. |
height | number | 360 | The height of the scene in px. |
width | number | 560 | The widest the scene grows, in px. It shrinks to fit a narrower parent. |
replayLabel | string | "Replay" | What screen readers call the replay button. |
className | string | None |