NV Elements Catalog Starters Repo System Themes Getting Started Getting Started Installation CLI MCP Skills Lint Integrations Getting Started Angular Bundles Custom Elements Golang Hugo Import Maps Lit Lit Library MCP Apps NextJS Nuxt Preact React SolidJS Svelte TypeScript Vue About Changelog Metrics Support Accessibility Contributions Requests Migration Foundations Overview Typography Iconography Themes Design Tokens Size & Space Objects Interactions Support Status Color Animation Fonts Layers Custom Layout Horizontal Vertical Grid Popovers i18n Visualization View Transitions Elements Accordion Alert Avatar Badge Breadcrumb Button Button Group Card Chat Message Checkbox Color Combobox Copy Button Datagrid Integrations Column Action Column Alignment Column Fixed Column width Container Card Display Settings Footer Heatmap Keynav Multi Select Pagination Panel Detail Panel Grid Performance Placeholder Row Action Row Groups Row Sort Scroll Height Single Select Stripe Date Datetime Dialog Divider Dot Drawer Dropdown Dropdown Group Dropzone File Format Datetime Format Number Format Relative Time Forms Validation Actions Control Icon Icon Button Input Input Group Logo Menu Month Notification Page Page Header Page Loader Pagination Progressive Filter Chip Progress Bar Progress Ring Password Preferences Input Pulse Radio Range Resize Handle Search Select Skeleton Sort Button Sparkline Star Rating Steps Switch Tabs Tag Textarea Time Toast Toggletip Toolbar Tooltip Tree Week Patterns Authentication Browse Chat Dashboard Editor Empty States Heatmap Keyboard Shortcut Logging Media Navigation Onboarding Panel Responsive Search Subheader Trend Code Codeblock Monaco Input Diff Input Editor Diff Editor Problems Markdown Markdown CSS Utility Labs Responsive Layout Viewport Container Patterns Forms API Design Properties & Attributes Slots Registration CustomEvents Stateless Composition Styles Packaging Glossary Logs Internal Guidelines Agent Harness Agent Tooling Agent Ownership Documentation Examples TypeScript Testing Unit Testing Accessibility Testing Lighthouse Testing SSR Testing Visual Testing Troubleshooting Component Creation Internal Examples All Examples

Alert

stable:  0.2.4 Coverage: 100.00% Bundle: 22.69kb Lighthouse: 100 Axe Core Released: 0.3.0
Overview API Examples
DefaultSupportStatusStatusGroupDefaultGroupStatusInvokerCommandClosableActionsProminenceContentColorCustomColorCombinations

Default

alert message
Edit Example

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

Standard Accent Warning Success Danger
Edit Example

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

Standard Accent Warning Success Danger Scheduled Queued Finished Failed Unknown Pending Starting Running Restarting Stopping Ignored
Edit Example

Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions.

Status Description accent Highlights important actions or draws attention to primary interactive elements. warning Indicates cautionary actions that require careful consideration before proceeding. success Represents positive outcomes, confirmations, or constructive actions. danger Signals destructive or irreversible actions that need extra attention and confirmation. scheduled Task has a scheduled future execution at a specific time. queued Task is waiting in line to begin after other tasks complete. pending Task is awaiting approval, user input, or external conditions before proceeding. starting Task is initializing and preparing to begin active execution. running Task is actively executing and making progress. restarting Task restarts after an interruption or reset. stopping Task is gracefully shutting down and completing cleanup operations. finished Task has completed successfully with the expected outcome. failed Task encountered an error and did not complete as intended. unknown Task status remains unknown or unavailable. ignored Task was intentionally skipped or excluded from execution. muted

Group Default

alert message
Edit Example

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

Standard Standard Accent Accent Warning Warning Success Success Danger Danger
Edit Example

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

Alert Notification Message 1 Alert Notification Message 2
Edit Example

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

Standard Standard Accent Accent Warning Warning Success Success Danger Danger
Edit Example

Indicates whether the user can dismiss or close the element.

Closable Description true The element displays a close control and the user can dismiss it. false The user cannot close the element and must dismiss it programmatically.

Actions

Standard action Standard action Warning action Success action Danger action
Edit Example

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

Standard banner message view details Accent banner message view details Warning banner message view details Success banner message view details Danger banner message view details
Edit Example

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

Session Paused:

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
Collapse Details
Edit Example

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

test-case
red-cardinal gray-slate gray-denim blue-indigo blue-cobalt blue-sky teal-cyan green-mint teal-seafoam green-grass yellow-amber orange-pumpkin red-tomato pink-magenta purple-plum purple-violet purple-lavender pink-rose green-jade lime-pear yellow-nova brand-green
Edit Example

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

test-case
Custom color will theme the closable icon. Custom color is compatible with actions button. action Combining custom color="pink-rose" with status yields the status icon with custom alert color. Combining custom color="pink-rose" with status yields the status icon with custom alert color. Combining custom color="pink-rose" with status yields the status icon with custom alert color. Combining custom color="pink-rose" with status yields the status icon with custom alert color. Combining custom color="blue-indigo" with status and prominence yields the status icon with an emphasized custom alert color. Combining custom color="blue-indigo" with status and prominence yields the status icon with an emphasized custom alert color. Combining custom color="blue-indigo" with status and prominence yields the status icon with an emphasized custom alert color. Combining custom color="blue-indigo" with status and prominence yields the status icon with an emphasized custom alert color.
Edit Example

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.