Black Friday Sale 40% Off•86h27m36s

PaceUI

  • Components
  • Blocks
  • Templates
  • Studio
  • Resources
Intro
  • Components
  • Installation
  • MCP
Agents
  • Chat Composer
  • Workflow Board
  • Thinking States
  • Audio Visualizer
  • Task Pipeline
  • Approval Card
  • Tool Calls
    New
  • Model Ability Selector
  • Model Selector
  • Response Writer
  • AI Suggestions
  • Token Counter
UI SDK
  • Roving Toolbar
    New
  • Sortable List
    New
  • Token Input
    New
Crafts
  • All Crafts
  • Avatar Flight
  • Voice Record
  • Starfield Card
  • Destination Queue
  • Rolling Bento
  • Download Button
  • Cart Stepper
  • Heart Burst
  • Copy Bar
  • Generative Grid
  • Destination Card
  • Magnetic Button
  • Morphing Copy
  • Expanding Search
  • Metric Tracker
  • Tilt Card
  • Animated Stack
Charts
  • Acquisition Funnel
  • Weekly Traffic
  • Customer Growth
  • Financial Performance
  • Model Usage
  • Customer Segments
  • Sales Overview
  • Channel Sales
  • Daily Orders
  • Weekly Attendance
  • Market Trends
  • Portfolio Overview
  • Resource Usage
  • SaaS Subscriptions
  • Database Performance
  • API Traffic
  • Traffic Distribution
  • Spend Allocation
Motion
  • Accordion
  • Alert
  • Calendar
  • Checkbox
  • Collapsible
  • Combobox
  • Context Menu
  • Dropdown Menu
  • Empty
  • Hover Card
  • Input OTP
  • Menubar
  • Navigation Menu
  • Pagination
  • Progress
  • Radio Group
  • Rating
    New
  • Scroll Area
  • Select
  • Sidebar
  • Slider
  • Switch
  • Tabs
  • Tooltip
  • Reveal Text
  • Scramble Text
  • Squash Text
  • Bouncing Text
  • Mouse Wave Text
  • Text Fall Button
  • Spring Button
  • Infinite Scroller
  • Fillable Button
  • Layered Stack
  • Gradient Shadow
  • Profile Peek
  • Flip Reveal
  • Reveal on Scroll
  • Swap
  1. Components
  2. UI SDK
HomeNext

Roving Toolbar

Single-tab-stop toolbar and segmented control built with @ui-sdk/core createRovingFocus, selection, focus recovery, and animated sliding indicator.

Core Behaviors

  • createRovingFocus: Implements the WAI-ARIA toolbar pattern with a single Tab stop (tabindex="0" on the active item, "-1" on others) and arrow-key navigation (ArrowLeft/ArrowRight or ArrowUp/ArrowDown, plus Home/End).
  • createSelection: Supports both single-select segmented control mode and multi-select toolbar mode with aria-pressed state.
  • createFocusRecovery: Automatically restores focus to the nearest neighbor if the currently focused toolbar item is removed.
  • Animated Indicator: Spring-driven sliding active indicator with LayoutGroup and gliding hover highlight.

API Reference

RovingToolbar

PropTypeDefaultDescription
valuestring[]—Controlled array of selected item keys.
defaultValuestring[][]Initial uncontrolled array of selected item keys.
onValueChange(value: string[], details: ChangeDetails) => void—Callback fired when selection changes.
multiplebooleanfalseAllows multiple items to be pressed simultaneously.
orientation"horizontal" | "vertical""horizontal"Controls layout direction, aria-orientation, and arrow-key axis.
loopbooleantrueWraps arrow-key focus from the last item back to the first.

RovingToolbarItem

PropTypeDefaultDescription
valuestring—Unique identifier key for the toolbar item.
disabledbooleanfalseMarks the item aria-disabled="true" while keeping it reachable by arrow keys.
childrenReactNode—Item label and icon content.
classNamestring—Additional CSS classes for the item button.
Sortable List

PaceUI

Animated blocks, components, and templates for Next.js and TanStack Start. Built with Motion and shadcn - clean code you own.

GitHubTwitterDiscord

Products

BlocksComponentsTemplatesCraftsTanStack ChartsMCP ServerStarter KitsStyleX Components

Resources

DocumentationMotion ComponentsGSAP AnimationsNative AIBlogChangelog

Pricing & Account

PricingManage AccountLicensesAPI KeysAffiliate Program

Company

Contact UsDiscord CommunityPrivacy PolicyTerms of Service

© 2026 PaceUI. All rights reserved. Built by indie developer, Denish

PACEUI

Workspace View

Kanban columns grouped by workflow stage.

Snapshot
Initialized roving toolbar with single Tab stop