Four inline notices (info, success, warning and danger), each with a bold first phrase, one sentence, an optional action and a dismiss button.
Prompt for your coding agent
Add the OpenDesigner component alert-banners to this project: https://opendesigner.dev/library/alert-banners.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 alert-banners
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 alert-banners.html https://opendesigner.dev/library/alert-banners.html
Downloads the one file. Its catalog entry lists its parts, the data it holds, its states and tokens.
- Accessibility
- Info, success and warning use role status and the danger notice uses role alert; actions and dismiss are real buttons, and dismissing moves focus to the next notice.
- From
- Made for the library