Skip to content

Toolbar

Groups related controls in one tab stop, with arrow keys to move focus.

toolbar-basic-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Formatting toolbar

Make something worth reading.

toolbar-demo.tsx

Vertical toolbar

The up and down arrow keys move focus.

toolbar-vertical-demo.tsx

Sizes

Popovers that open from the toolbar keep the default size.

toolbar-sizes-demo.tsx

API reference

vip/ui adds or changes the props below. For all other props, see React Aria Toolbar (opens in a new tab).

size: "xs" | "sm" | "md" | "lg" | "xl"
Sets the size of each button, toggle, and toggle group in the toolbar. Popovers and dialogs that open from the toolbar keep the default size.