Components
Alert
An inline callout for information, warnings, success and errors. It stays in the page and supports composition.
How this queue works
It reflects prompts in your category over the selected range.
Refresh budget almost used
You are near this month's limit for this category.
Export is ready
Your CSV finished generating and is ready to download.
Data did not load
We could not load responses for this run. Retry shortly.
Usage
A short inline callout that reports a condition inside a page or card.
Do and don't
- Do. Keep one clear sentence under the title and let the variant carry tone.
- Don't. Use it as a page-wide advisory with dismissal; use Banner for that.
Variants
default, warning, destructive and success. Warning and destructive render with role="alert"; default and success use role="status". Pass role to override when the context needs it. Icon tint follows the variant unless overridden on AlertIcon.
Composition
AlertIcon is optional. Wrap the title and description in AlertContent so they stack. Every part is optional; a single sentence works on its own.
Props
Alert:variant,role, standard div attributes.AlertIcon:icon,variant.AlertContent,AlertTitle,AlertDescriptiontake standard element attributes.
Alert vs Banner
Alert is a small, non-dismissible callout inside a region. Banner is a page-level advisory with contrast options, actions and dismissal. Use one that matches the scope, not both for the same message.
Accessibility
The role determines how a screen reader announces the message. Keep the title short and the description specific. Color reinforces the tone but never replaces the words. Do not put a destructive action here without a confirmation elsewhere.
Related
Status colors come from Colors. The state vocabulary is in States & Feedback.