Closed GrosSacASac closed 5 years ago
What we've found, surveying both other platforms and various design systems, is that notifications and toasts are distinct. @kenchris summarizes this well:
the difference is that this is a temporary notification / infobar, like you see for PWAs ("new version available, press reload to refresh") or like in GMail ("Chat is currently unavailable") etc. These are not things you want an actual system notification for... They really depend on the surrounding content/situation unlike regular notifications
In particular, you do not want these ending up in your Android/iOS/Windows/macOS notifications tray; they are purely in-app.
We should cover this more clearly in the README.
Clarification added: https://github.com/jackbsteinberg/std-toast#extending-the-notification-api
https://developer.mozilla.org/en-US/docs/Web/API/notification
It could be extended. Add more options. CSS selectors added. This could avoid feature creep.