Default
Alert is an element that displays a brief, important message in a way that attracts the user's attention without interrupting the user's task.
Support Status
Alert status variants for semantic messaging. Use accent for informational updates, warning for cautionary messages requiring attention, success for confirmations, and danger for errors or critical issues that may block user progress.
Status
Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions.
Group Default
Alert group for visually organizing related messages with shared styling. Use alert groups to present many related messages as a cohesive unit, improving scannability and visual hierarchy.
Group Status
Alert groups with inherited status styling for all children. Applying status at the group level ensures visual consistency across related messages, perfect for form validation where many fields share the same error context.
Invoker Command
Dismissible alerts using the Invoker Command API for declarative close behavior. Use commandfor and command="--close" on action buttons to dismiss individual alerts without custom JavaScript event handling.
Closable
Indicates whether the user can dismiss or close the element.
Actions
Alerts with action buttons for immediate user response. Include actions when the alert requires user decision-making (like "Retry", "View Details", or "Undo"), making the next step clear and reducing friction in error recovery or task completion flows.
Prominence
High-prominence alerts with emphasis styling for full-width banners. Use prominence="emphasis" for system-wide announcements like maintenance windows, feature launches, or critical security updates that need max visibility and impact across the entire interface.
Content
Failed to verify drives.
10:06:01 AM [verify] update /virtual:/verify/ 10:06:11 AM [build] update /virtual:/build/ 10:06:22 AM [error] update /virtual:/error/ - failed to connect to remote
Alert with complex structured content including expandable details. Use the content slot for rich information like stack traces, validation summaries, or detailed error logs where users need both the high-level message and access to technical details for debugging or reporting.
Color
Custom color variants for brand-specific styling or extra visual differentiation beyond standard status colors. Use custom colors when standard semantic colors don't match your use case, such as category labels, team assignments, or brand-specific messaging.
Custom Color Combinations
color will theme the closable icon.color is compatible with actions button.
color="pink-rose" with status yields
the status icon with custom alert color.color="pink-rose" with status yields
the status icon with custom alert color.color="pink-rose" with status yields
the status icon with custom alert color.color="pink-rose" with status yields
the status icon with custom alert color.color="blue-indigo" with status and
prominence yields the status icon with an emphasized custom alert
color.color="blue-indigo" with status and
prominence yields the status icon with an emphasized custom alert
color.color="blue-indigo" with status and
prominence yields the status icon with an emphasized custom alert
color.color="blue-indigo" with status and
prominence yields the status icon with an emphasized custom alert
color.Custom color combinations with status icons and prominence for advanced theming. Custom colors interact with status icons and emphasis styling, useful for maintaining brand consistency while preserving semantic meaning through status indicators.