Getting startedComponentsDesign tokensThemingTheme synthesizerFrameworksAccessibilityUtilitiesServer renderingBrowser supportContributingChangelogApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip
ARC UIARC Radiant Components
v4.9DocsComponentsTokensSynthesizer
Getting startedFrameworksServer renderingDesign tokensThemingTheme synthesizerTypographyUtilitiesAll componentsAccessibilityBrowser supportChangelogContributingStatsApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip

Alert

An inline message box colored by severity, with an optional close button.

ComponentsAlert
feedbackhybrid
<arc-alert>

Overview

Alert shows a message inline in the page. The variant sets the color and icon: `info`, `tip`, `success`, `warning` or `error`. Unlike a toast, an alert stays on the page until the user dismisses it or leaves, so use it for messages the user has to acknowledge or keep seeing: a state change, a finished action, a problem. The body slot takes any inline or block content, including links, lists and buttons. **Alert absorbed `arc-callout` in v4.** Callout was an emphasized aside that differed from an `info` alert only in styling. It brought three things with it: the `tip` variant for advice that is neither a status nor a problem, an `icon` slot that replaces the built-in status glyph, and the `live` prop below. Callout's derived uppercase label has no equivalent, so pass `heading` if you want one. See [the tombstone](/docs/components/callout) for the full translation. The role and announcement follow `variant` by default. `error` and `warning` are `role="alert"` and assertive, `success` is `role="status"` and polite, and `info` and `tip` are `role="note"` and aren't announced. That last one changed from v3, where `info` was a polite live region. `info` is the variant most likely to be static content, and announcing every informational box on load is noise. Severity and urgency don't always agree, and `live` sets the announcement on its own. An `info` alert inserted after a background save wants `live="polite"`, and a `warning` in the initial HTML probably wants `live="off"`.

Guidelines

Do

  • Keep the text short: lead with the outcome, then explain
  • Add a heading when the body runs longer than one sentence
  • Make an alert dismissible when the message is temporary
  • Put an alert next to the content it's about, or at the top of the page for page-wide messages
  • Use `tip` for advice that is neither a status report nor a problem
  • Set `live` on an alert you insert after page load. The default goes by severity and can't know the alert just appeared
  • Use the `icon` slot when the glyph should say something the variant doesn't, such as a product icon or a specific action

Don't

  • Don't use `info` to get a live region. It is `role="note"` and isn't announced, so set `live="polite"`
  • Don't stack more than two or three alerts. Combine them, or use toasts
  • Don't use `error` for warnings. Keep it for failures
  • Don't rely on color alone. The heading and text should make sense without it
  • Don't make every alert dismissible. Leave critical errors on screen

Features

  • `dismissible` adds a close button. Clicking it fires a cancelable `arc-close` event, then hides the alert
  • `density="compact"` reduces padding and type size for forms and dense panels

Preview

Your changes are now live on production. Cache node_modules between CI runs to skip the install step. Compact density, with the status glyph replaced through the icon slot.

Usage

Its events and state need JavaScript, so use the Web Component or a framework wrapper for those.

<arc-alert variant="success" heading="Deployment complete" dismissible>
  Your changes are now live on production.
</arc-alert>

<!-- tip: advice, not a status. Absorbed from arc-callout. -->
<arc-alert variant="tip" heading="Faster builds">
  Add a <code>.arcignore</code> to skip files the bundler never reads.
</arc-alert>

<!-- info is role="note" and is not announced. Say so when it should be. -->
<arc-alert variant="info" live="polite" density="compact">
  <arc-icon slot="icon" name="sparkle"></arc-icon>
  Draft saved.
</arc-alert>

API

ROLESobject{ error: 'alert', warning: 'alert', success: 'status', info: 'note', tip: 'note', }
Severity → ARIA role. V4-SCOPE §3.2, ratified 2026-08-13. arc-alert already implemented role-follows-severity, so most of this is a ratification of what the component did. The exception is info, and it is the reason the row needed a decision at all: info used to map to role="status", which *is* a polite live region. arc-callout's default variant is info and it was a static role="note" box, so a naive merge would have upgraded every informational callout on every page into an announcement, landing the regression on the single most common variant. **So info is note now, and that is a behaviour change for existing arc-alert users too**, not only for callout's. The reasoning: info is the variant most likely to be static page furniture, and an alert that genuinely needs announcing has two ways to say so: pick a severity that carries one, or set live.
headingstring''
Optional bold heading rendered above the body slot. Use it for a scannable one-line summary so users can quickly gauge the alert's importance before reading the full message.
variant'info' | 'tip' | 'success' | 'warning' | 'error''info'
Controls the semantic color palette, the icon, and, through the ROLES table, the ARIA role and whether the alert is announced. Use "info" for neutral guidance, "tip" for advice, "success" for confirmations, "warning" for caution states, and "error" for failures or blocking issues.
live'auto' | 'off' | 'polite' | 'assertive''auto'
Announcement behaviour. auto (the default) derives it from variant: error and warning are assertive, success is polite, info and tip are not announced at all. Set it explicitly when severity and urgency disagree: an info alert injected after a background save wants polite, and a warning rendered in the initial page probably wants off.
dismissiblebooleanfalse
When true, renders a close button in the top-right corner. Clicking it removes the alert from the DOM and fires an "arc-close" event that parent components can listen to.
density'default' | 'compact''default'
Visual density. 'compact' reduces padding and font sizes for inline or space-constrained usage.

Events

arc-close
Fired when a dismissible alert is closed

See also