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

Sortable List

A list people reorder by dragging a grip handle or with the keyboard, with a line marking where the item will land.

ComponentsSortable List
inputinteractive
<arc-sortable-list>

Overview

SortableList lets people reorder a short list by drag and drop or from the keyboard. Each child element becomes a bordered row with a six-dot grip on the left and the child's own markup on the right. While dragging, the source row fades to 50% opacity with a large shadow, and an accent line above or below the target row shows where it will land. From the keyboard, Space selects the focused row (accent border), Enter picks it up (thicker accent ring), and the up and down arrows move it. Space or Enter drops it. A polite live region announces the selection, the pick-up, each arrow step ("Bravo, position 2 of 4.") and the drop with the new position ("Position 2 of 4"). Escape during a move puts every row back in the order it had at pick-up, announces "Move cancelled." and fires no `arc-change`. After every drop, `arc-change` fires with `detail.order`: the original indices in their new order. Map that back onto your data instead of tracking each move.

Guidelines

Do

  • Keep lists under about 50 items
  • Give every item distinct text, since that text is what screen readers announce
  • Listen for `arc-change` and save the new order

Don't

  • Don't put buttons or links inside items. Each row is already a focusable `option` and a drag source, so a control inside it is nested interactive content
  • Don't use it for a long list people would rather search or filter
  • Don't place two sortable lists side by side without clear separation between them

Features

  • Native HTML5 drag and drop
  • The list is a `listbox` and each row a focusable `option`, with `aria-roledescription` "sortable list" and "sortable item"
  • Announcements use each row's text content, or "Item N" when it has none
  • Disabled drops to 50% opacity and blocks pointer events

Preview

Design tokens
Components
Patterns
Utilities

Usage

This component needs JavaScript. Use the Web Component or a framework wrapper.

<arc-sortable-list>
  <div>First item</div>
  <div>Second item</div>
  <div>Third item</div>
</arc-sortable-list>

<script>
  document.querySelector('arc-sortable-list')
    .addEventListener('arc-change', e => {
      console.log('New order:', e.detail.order);
    });
</script>

API

disabledbooleanfalse
Disables all interaction, reducing opacity to 40% and blocking pointer events.

Events

arc-change
Fired when a drag or keyboard move is dropped, with updated order in detail. Escape during a keyboard move restores the order from pick-up and fires nothing.

See also