Skip to content
caliper ui pro docs

Overflow actions

A pill rail of the main actions; a round toggle slides the rest out beside them. Hidden actions are out of the tab order, arrow keys move along the rail and Escape folds it back.

Pro

When to use

  • Toolbars that must fit narrow widths.
  • The first two actions are used far more than the others.

When not to use

  • All actions are equally important; show them all.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/overflow-actions

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

OverflowActions

10 props
PropTypeDefaultDescription
primaryActions *readonly OverflowAction[]—
overflowActions *readonly OverflowAction[]—
expandedboolean—
defaultExpandedbooleanfalse
onExpandedChange((expanded: boolean) => void)—
onAction((item: OverflowAction) => void)—
labelstring"Actions"The toolbar's name for assistive tech.
openLabelstring"Show extra actions"
closeLabelstring"Hide extra actions"
classNamestring—

Keyboard

Escape
Closes or cancels, then returns focus to where it came from.
Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.

Accessibility

It exposes toolbar semantics, with aria-label, aria-expanded and aria-hidden kept in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/overflow-actions.md

The index of every part is at /llms.txt.

More in Actions