- Docs
- Components
- Overlays
Toast
A brief word that something happened, at the bottom end. One action at most, such as Undo.
- Import
- @qeetrix/react
- Status
- StableSince 0.0.2
- Renders
<div role="region">Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Keyboard
| Keys | What happens |
|---|---|
| F6 | Moves to the Notifications region. |
| TabTab | Through a toast's action and Close. |
| Escape | Closes the focused toast. |
02
Behaviour
- Announced
- Politely; a danger toast at once, assertively.
- Time
- Toasts pause while hovered or focused; danger ones stay until closed.
- Region
- A landmark named "Notifications", at the bottom end.
- Touch
- Swipe one away.
03
Tested
On every change, before it ships.
- axe, WCAG 2.2 A and AA, in Chromium on every pull request
- Firefox and WebKit every night
- Focus: where it lands as it opens, and where it returns as it closes
- Forced colours, reduced motion and right to left