Charcoal UI

Expandable Action Bar

A selection bar that rises when items are selected: the count rolls as it changes, the main actions sit up front, and More stretches the bar to reveal the rest.

Examples

Expandable Action Bar

API reference

PropTypeDefaultDescription
countnumber—
actions{ label; icon; onClick?; destructive? }[]—
visiblenumber3
onClear() => void—
classNamestring—

About Expandable Action Bar

Expandable Action Bar rises from the bottom when items are selected. The count rolls as it changes, the main actions sit up front, and More stretches the bar open to reveal the rest.

Expandable Action Bar is a navigation component for React 19, styled with Tailwind CSS 4 and animated with Motion. It drops into Next.js, Vite, Remix or Astro through the shadcn CLI as a single file you own.

When to use Expandable Action Bar

  • File and email managers.
  • Admin tables with bulk actions.
  • Photo galleries.
  • Task lists.

How it works

The bar is a toolbar labelled with the selection count, and buttons animate in with layout so the width grows smoothly. It closes its extra actions when the selection clears.

Links and buttons keep their roles, arrow keys move where a group is expected, the current item is marked with aria-current, and focus is always visible. With prefers-reduced-motion on, it holds still or settles instantly instead of animating.

Customizing Expandable Action Bar

Every prop is documented in the API reference above with its type and default. The ones you will reach for first are listed here.

The Customize panel next to the preview lets you change visible live, and the Code tab updates to match, so the snippet you copy already carries your values.

  • count (number).
  • actions.
  • visible (number, default 3).

Goes well with Expandable Action Bar

These navigation pieces share its tokens and motion language, so they sit together on one page without clashing.

  • Dock: A macOS-style React dock whose icons swell with pointer distance and show labels
  • Expandable Tabs: Compact React icon tabs where the active tab expands to reveal its label
  • Floating Nav: A floating React pill nav that hides on scroll down and returns on scroll up
  • Context Menu: A React right-click context menu that opens at the pointer and stays on screen
  • Bottom Nav: An animated React mobile tab bar with a sliding pill, hopping icons and badges

Install Expandable Action Bar

npx shadcn@latest add @charcoal/expandable-action-bar

Expandable Action Bar is part of Charcoal UI Pro. One seat unlocks all 393 Pro components, 112 landing-page sections and 100 full templates, for every personal and client project, with updates included. Add the @charcoal registry once with your access token, then the command above copies expandable-action-bar.tsx into components/ui and installs clsx, tailwind-merge.

You own the file you install: no runtime package, no lock-in, nothing to keep in sync. Change it however your product needs.

See Charcoal UI Pro pricing · Pro setup

Frequently asked questions

How do I install Expandable Action Bar?
Expandable Action Bar is part of Charcoal UI Pro. Add the @charcoal registry to components.json with your access token, then run npx shadcn@latest add @charcoal/expandable-action-bar. It copies expandable-action-bar.tsx into components/ui and installs motion, clsx, tailwind-merge.
Is Expandable Action Bar free for commercial use?
Expandable Action Bar needs a Charcoal UI Pro seat, monthly or a one-time lifetime price. A seat covers unlimited personal and commercial projects, including client work, and every future Pro component.
Does Expandable Action Bar work with Next.js?
Yes. It is a client component for React 19 styled with Tailwind CSS 4, so it works in the Next.js App Router and Pages Router, Vite, Remix and Astro.
Can an AI coding agent install Expandable Action Bar?
Yes. Connect the Charcoal UI MCP server (https://charcoalui.com/mcp) to Claude Code, Cursor or any MCP client; get_component returns Expandable Action Bar's props and get_install_command returns the exact command.

Expandable Action Bar as Markdown · llms.txt