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

Toolbar

Horizontal toolbar with prefix, center, and suffix slots.

ComponentsToolbar
layouthybrid
<arc-toolbar>

Overview

Toolbar is a horizontal strip of controls (buttons, dropdowns, a search field) above or inside a content region. The `prefix` slot holds start-edge actions such as a file menu or a back button, the default slot holds a title or context in the middle, and `suffix` holds end-edge actions such as Save or Share. It has `role="toolbar"`, so screen readers treat its controls as one group. `size` sets the height: `md` (the default) is 48px for a main toolbar, `sm` is 36px for a secondary or nested one, and `lg` is 60px for a prominent app bar. A bottom border is on by default, and `no-border` removes it. With `overflow` set, items that don't fit the width are hidden from the end and listed in a "More" menu, whose icon button follows `size`. With `sticky` set, the toolbar sticks to `top: 0` at `z-index: 50` as the content scrolls.

Guidelines

Do

  • Use it above content panels, editors and detail views for actions on that content
  • Put the main action, such as Save, in the `suffix` slot
  • Use `size="sm"` for a secondary toolbar inside a panel or split pane
  • Set `sticky` over long scrolling content so the toolbar stays in view
  • Group related buttons in the same slot

Don't

  • Don't use it as the main site navigation. Use TopBar or NavigationMenu
  • Don't put more than five or six controls in it. Move the rest into a DropdownMenu
  • Don't turn off the border when the toolbar sits on content with the same background color
  • Don't use it for status information. Use StatusBar

Features

  • Background is `--surface-raised`
  • Slotted controls are spaced by `--space-sm`

Preview

File Edit View
Document.txt
Share Save
Document content area

Usage

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

<arc-toolbar border>
  <div slot="prefix"><arc-button variant="ghost" size="sm">File</arc-button></div>
  <span>Document.txt</span>
  <div slot="suffix"><arc-button variant="ghost" size="sm">Save</arc-button></div>
</arc-toolbar>

API

stickybooleanfalse
When set, the toolbar uses position: sticky with top: 0 and z-index: 50, keeping it visible as the user scrolls through content below.
size'sm' | 'md' | 'lg''md'
Controls the toolbar height. md, the default, is 48px for primary toolbars; sm is 36px for secondary or nested toolbars; lg is 60px. The nested arc-icon-button in the overflow menu tracks it.
borderbooleantrue
Renders a subtle bottom border (--border-subtle) to visually separate the toolbar from the content below. Enabled by default.
overflowbooleanfalse
Enables responsive overflow collapse. A ResizeObserver measures available width; slotted items that do not fit are collapsed (hidden via the reversible hidden attribute) from the end of the item list, and a "More" trigger opens a menu of proxy items that re-dispatch clicks to the hidden originals. Note: because slotted nodes cannot be moved into the overflow panel, complex custom content is represented in the menu only by its text label (or the label attribute on arc-button / arc-icon-button).

Events

arc-overflow-change
Fired when the set of collapsed items changes (only with the overflow prop). detail: { hiddenCount: number }.

See also