Skip to content
PixiKit

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
NameTypeDefaultDescription
toastsToastPileToast[]DEFAULT_TOASTSThe toasts that arrive, one after the other; the send button cycles through them.
limitnumber3The most toasts shown at once.
lifenumber4How long a toast stays, in seconds.
side"left" | "right""right"The corner the toasts arrive in.
sendLabelstring"Send one"The label of the send button in the top bar.
closeLabelstring"Dismiss"What screen readers call each close button.
regionLabelstring"Notifications"The accessible name of the notifications region.
autoplaybooleantrueStarts when the scene scrolls into view; when off it waits for a click on replay.
loopbooleantruePlays again from the start after the hold.
speednumber1Playback speed multiplier.
heightnumber360The height of the scene in px.
widthnumber560The widest the scene grows, in px. It shrinks to fit a narrower parent.
replayLabelstring"Replay"What screen readers call the replay button.
classNamestringNone

Related