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

List

Structured list container with optional selection, keyboard navigation, and multiple visual variants. Pairs with arc-list-item for rich content rows.

ComponentsList
datainteractive
<arc-list>

Overview

List provides a semantic container for ordered collections of items. It handles keyboard navigation (arrow keys, Home, End), optional single or multi-select behavior, and visual variants that control border and separator styles. When `selectable` is set, the list renders with `role="listbox"` and manages `aria-selected` states across its child `arc-list-item` elements. Selection state is tracked via a comma-separated `value` string, making it easy to bind in any framework. The `arc-change` event fires on each selection change with the current value in `event.detail`. Three visual variants cover the common list presentations: default (plain), bordered (outlined container), and separated (bottom borders between items). A size prop controls the base font size for the entire list, cascading down to child items.

Guidelines

When to use

  • Use arc-list-item as direct children for consistent styling and keyboard navigation
  • Put per-row buttons (rename, delete) in the `actions` slot of a plain list, and give each one a label naming its row: "Rename Weekly review", not "Rename"
  • Mark the current row of an actionable list with `href` and `selected`, which sets aria-current; a selectable list is a listbox and cannot hold row actions
  • Set `selectable` when items represent choices the user needs to pick from
  • Use the bordered variant inside cards or panels that need visual containment
  • Use the separated variant for long lists where row boundaries improve scannability

When not to use

  • Do not use List for navigation menus. Use `arc-navigation-menu` or `arc-dropdown-menu` instead
  • Do not mix arc-list-item with raw HTML elements inside a selectable list
  • Do not nest lists more than one level deep. Consider a tree view for hierarchical data

Features

  • Full keyboard navigation with Arrow Up/Down, Home, End, Enter, and Space
  • Single and multi-select modes with `value` binding and `arc-change` events
  • Three visual variants: default, bordered, separated
  • Three size presets (sm, md, lg) that cascade to child items
  • Semantic `role="listbox"` when selectable, `role="list"` otherwise
  • Automatic `aria-multiselectable` when `multiple` is set
  • Row actions: an `actions` slot on arc-list-item, revealed on hover or focus and always shown without hover, that never selects the row
  • Exposed CSS part: list

Preview

Inbox Drafts Sent Trash Weekly review Roadmap

Usage

This component requires JavaScript. No pure HTML/CSS version is available. Use the Web Component directly or a framework wrapper.

<arc-list variant="bordered" selectable>
  <arc-list-item value="inbox">
    <arc-icon slot="prefix" name="inbox"></arc-icon>
    Inbox
    <arc-badge slot="suffix" variant="primary">12</arc-badge>
  </arc-list-item>
  <arc-list-item value="drafts">
    <arc-icon slot="prefix" name="file-text"></arc-icon>
    Drafts
  </arc-list-item>
  <arc-list-item value="sent">
    <arc-icon slot="prefix" name="send"></arc-icon>
    Sent
  </arc-list-item>
</arc-list>

API

valuestring''
The currently selected value(s). Comma-separated when multiple is true. The selection itself is held as a list of values, so a value containing a comma is selected and rendered correctly; only the *serialised* multi-select string cannot represent one, since the comma is its separator. Single-select is exact for any value.
labelstring''
Accessible name for the list, applied as aria-label. Required when selectable is set so the listbox has an accessible name.
variant'default' | 'bordered' | 'separated''default'
Visual style. Bordered wraps the list in an outlined container. Separated adds bottom borders between items.
size'sm' | 'md' | 'lg''md'
Scale of the list's rows: their text, padding and height. sm is a dense list such as a sidebar; its rows keep the touch-target minimum (larger on touch screens).
selectablebooleanfalse
Enables selection mode. Sets role="listbox" and manages aria-selected on child items.
multiplebooleanfalse
Allows multiple items to be selected simultaneously. Only applies when selectable is true.

Events

arc-selectdetail:{ value: string }
Fired from the activated arc-list-item when a selectable list is driven by Enter or Space.
arc-changedetail:{ value: string }
Fired when the selection changes. event.detail.value contains the new value string.

List Item

<arc-list-item>

Individual row within an arc-list. Supports prefix/suffix slots, a description slot for secondary text, an actions slot for per-row buttons, links, and selection state.

valuestring''
Unique identifier used for selection tracking.
hrefstring''
When set, renders the item as an anchor tag for navigation.
selectedbooleanfalse
Whether this item is currently selected. Managed automatically by a selectable parent list. On an href item in a plain list it marks the current page instead (aria-current="page"), which is the accessible way to show the current row in a list whose rows carry actions.
disabledbooleanfalse
Prevents interaction and dims the item.

Events

arc-selectdetail:{ value: string }
Fired when the item is activated: by click, or by Enter or Space on a focused row (in a selectable list the parent dispatches it from this element). Cancelable: on an href row, cancelling it stops the link navigating, which is how a single-page app routes the click itself. A modified click (Ctrl, Cmd, Shift, a middle click) is left to the browser and does not fire it.

See Also