Short notices that stack in a corner: done with an undo, in progress with a bar, and failed with a retry that keeps the person's work.
Prompt for your coding agent
Add the OpenDesigner component toast-stack to this project: https://opendesigner.dev/library/toast-stack.html. Keep its markup and states; map its --ds-* variables to my tokens.
With OpenDesigner installed
python3 path/to/skills/opendesigner/scripts/library.py add toast-stack
Copies the file and lists any token your project lacks. Put the folder where OpenDesigner is in place of path/to; your AI knows it.
Without OpenDesigner
curl -fsSLo toast-stack.html https://opendesigner.dev/library/toast-stack.html
Downloads the one file. Its catalog entry lists its parts, the data it holds, its states and tokens.
- Accessibility
- Success and progress are status regions and the error is an alert; dismiss buttons have names; the entry motion uses the engine's toast tokens, which turn off under reduced motion.