jackbsteinberg / std-toast

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Behavior

jackbsteinberg opened this issue · comments

Many toast libraries surveyed supported displaying more than one toast at a time. Some libraries stack toasts, some queued them up and displayed them one after another. How should the configuration of showing multiple toasts be supported in the standard toast?

Currently the explainer has the multiple option for multiple handling strategy, and newestOnTop option for where the new toasts should stack on the .show() function.

  • Should those be a global setting? Per container?
  • How do we deal with different toasts having different values?
  • Do we need a newestOnTop or can that option be captured in the multiple field?