Toast UI element
- Category
- Layered APIs
- Type
- New or changed feature
- Status
- No longer pursuing (Chrome No longer pursuing)
- Intent stage
- Start prototyping
WPT details: Tested in the /toast folder of Web Platform tests, not yet pushed into Chrome so not yet on wpt.fyi. Categories under testing: attributes, methods, options, events, show-toast (function)
Summary
Introduces a standard, customizable toast notification HTML element, and a JavaScript API to provide easy use for common cases.
Motivation
Modern web applications have grown in the scale of what actions they can offer, to the point where clear feedback is an essential part of a complete, accessible web experience. Toast UI elements are a common way to provide this feedback, and a variety of libraries exist to provide toasts. Creating a built in toast would allow those libraries to layer their implementations on top, and allow web developers to use a simple, unopinionated toast without having to bring a new library into their project.
Standards & signals
- Specification: https://github.com/jackbsteinberg/std-toast
- Firefox: No signal
- Safari: No signal
- Web developers: Positive
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=972945
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=toast-ui-element
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Toast%20UI%20element
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Toast%20UI%20element
- Baseline status: https://webstatus.dev/?q=Toast%20UI%20element
Docs: https://github.com/jackbsteinberg/std-toast
Explainers: https://github.com/jackbsteinberg/std-toast