Arc
ComponentsBlocksDocsPricingTry the demo
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboard
KPI drilldown
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Choropleth explorer
Connected scatter
Market terminal
Budget variance
Small multiples
Line replay
AI chat
AI composer
Agent run
AI side panel
SidebarPro4
Page header
Command palette
Notification center
Selection toolbarNewPro
Empty states
Search resultsPro
Login and sign up5
Onboarding illustrationNewPro
OTP input
Multi-step formPro
Settings page
Settings command
Security settings
Billing overview
Usage billing
Cancel flow
Team members
Invite people
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Environment variables
Plan comparison
Pricing calculatorPro
Usage pricingPro
Cart drawerPro
Checkout summaryPro
Live checkoutNewPro
Invoice studio
Wallet card
Product listing
Product detail
Inbox triage
Support conversation
Support widget
Help center
File upload
Media playerPro
Week calendar
Availability picker
Project board
Release readiness
Kanban board
Hero section
Hero signupPro
Scroll storyPro
Spotlight gridPro
Feature bentoPro
Comparison table
Logo marquee
Studio perspectivesPro
Stats band
Changelog feed
FAQ section
Contact section
Team showcasePro
Blog grid
Site header
Site footer
CTA section
Newsletter signup
Activity terrain
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
Exploded viewNew
What’s new9 new
BlocksSelection toolbar

Selection toolbar

Pro

A contextual batch action surface that appears when items are selected.

Pattern · live

When to use

  • Bulk actions for checkbox-selectable tables or grids.
  • Floating bars that appear only while items are selected.

When not to use

  • Use dropdown-menu for per-row actions.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Use it next to selectable collections. Keep the count accurate and confirm destructive actions before applying them.

example.tsx
1import { SelectionToolbar } from "@/components/arc/selection-toolbar/selection-toolbar";2 3export function ProjectsBar({ selected, clear }: { selected: string[]; clear: () => void }) {4  return (5    <SelectionToolbar6      count={selected.length}7      noun="project"8      onClear={clear}9      actions={[10        { label: "Archive", onClick: () => archive(selected) },11        { label: "Delete", onClick: () => remove(selected), destructive: true },12      ]}13    />14  );15}
Built fromButtonSelection stateAction list

API reference

2 parts. The first is the root.

SelectionToolbar

A floating bar that appears while items are selected, showing a rolling count, bulk actions, and a clear button.

PropTypeDefaultDescription
countRequirednumber–Number of selected items. The bar mounts above 0 and leaves at 0.
actionsRequiredSelectionAction[]–Bulk actions rendered as buttons after the count.
onClearRequired() => void–Called by the clear button. Reset your selection here.
nounstring"item"Singular noun; an s is added when count is not 1.

SelectionAction

Action type: { label: string; icon?: ReactNode; onClick: () => void; destructive?: boolean }. label is also the React key, so keep labels unique.

No props.

Keyboard interactions

Tab
Moves through the actions and the clear button.
EnterorSpace
Activates the focused button.

Accessibility

  • The bar is role=toolbar labelled Selection actions.
  • A visually hidden aria-live polite line announces the count, such as 3 projects selected; the animated count is aria-hidden.
  • The clear button has aria-label Clear selection.
  • The bar unmounts at count 0, so move focus back to the list yourself if it was inside the bar.

Motion

  • The bar rises and scales in on a spring and sinks back faster when the selection clears.
  • Digits roll in the direction of the change, the plural s fades in place, and the count's width springs so actions do not jump.
  • Reduced motion uses plain fades and no width spring.

Responsive behavior

  • Below 520px the bar goes full width and actions wrap onto a second row under the count.
  • You position it yourself, for example fixed at the bottom center.

Performance

  • The bar unmounts at count 0; a ResizeObserver springs the count width so actions do not jump.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use with checkbox-selectable tables and grids for bulk actions.
  • Position it yourself (for example fixed at the bottom center); it has no default export, so import it by name.
/components/blocks/selection-toolbar/markdown

The full library index for assistants is at /llms.txt.

Related

Sortable data tableComponentCompare structured records with sortable columns.CheckboxComponentA binary choice with a precise, legible state.
PreviousNotification centerNextFile upload
Arc · 88 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown
  • Atlas redesignUpdated 2 hours ago
  • Spring launch siteUpdated yesterday
  • Billing migrationUpdated 3 days ago
  • Onboarding emailsUpdated last week
2 projects selected2 projects selected