Arc
ComponentsBlocksDocsPricingTry the demo
Get Pro
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboardPro
KPI drilldownPro
Metric explorerPro
Revenue explorerPro
MRR waterfallPro
Cohort retentionPro
Usage forecastPro
Journey flowPro
Uptime statusPro
Pivot builderNewPro
Choropleth explorerPro
Connected scatterPro
Horizon chartPro
Account healthPro
Market terminalPro
Budget variancePro
Small multiplesPro
Line replayPro
AI chatPro
AI composerPro
AI answerPro
Model pickerPro
Model arenaPro
Prompt studioPro
Document extractionPro
Agent memoryPro
AI side panelPro
AI inline editPro
Research runPro
AI insight cardPro
Catch upPro
AI feature launchPro
AI search barPro
AI setup wizardPro
Call insightsPro
Lead scoringPro
Agent runPro
Agent tasksPro
Agent approvalsPro
Agent routinesPro
Agent orchestratorPro
MCP serversPro
Knowledge basePro
Eval suitePro
Agent builderPro
Agent galleryPro
SidebarPro4
Page header
Command palette
Notification center
Selection toolbarPro
Empty states
Search resultsPro
Login and sign up5, free and Pro variants
Onboarding illustrationPro
OTP input
Multi-step formPro
Two-factor setupPro
Magic linkPro
Settings pagePro
Settings commandPro
Security settingsPro
Billing overviewPro
Usage billingPro
Cancel flowPro
Onboarding surveyPro
Spend alertPro
Team membersPro
Invite peoplePro
Team directoryPro
Roles and permissionsPro
Profile pagePro
API keysPro
WebhooksPro
IntegrationsPro
Environment variablesPro
Domain verifyPro
Webhook testerPro
Plan comparison
Pricing calculatorPro
Usage pricingPro
Cart drawerPro
Checkout summaryPro
Live checkoutPro
Seat managerPro
Credit top-upPro
Invoice studioPro
Wallet cardPro
Delivery trackerPro
Product listingPro
Product detailPro
Seat mapPro
Activity feedPro
Inbox triagePro
Support conversationPro
Support widgetPro
Help centerPro
Feature votingPro
File upload
Media playerPro
Week calendarPro
Availability pickerPro
Project boardPro
Gantt timelineNewPro
Release readinessPro
Kanban boardPro
Feedback boardPro
Smart schedulerPro
Task breakdownPro
Goal trackerPro
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 terrainPro
Revenue globePro
Customer galaxyPro
Semantic zoomPro
Layout morphPro
Exploded viewPro
What’s new4 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 · 134 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