<cad-alert>
Alert
Show a status message, with an optional action and close button.
Status with an action
Status variants
Choose the variant that matches the message.
Warning
Error
Neutral
Accent
Variants
Choose a variant that matches the message. Use accent for a next step and size="compact" for alerts within content.
API reference: <cad-alert>
Events
cad-dismiss reports { variant } and bubbles to parent elements.
Accessibility
Info, success, neutral, and accent use role="status". Warning, error, and danger use role="alert". Name dismiss buttons and explain urgency in text, not just color.