Skip to content
ghostui

Toolbar

Group related controls into one keyboard navigation region.

Preview

Use the toolbar to format this text.

Design guidance

Give the toolbar an accessible name. Use Toolbar.Button, Link and Input so Base UI can manage roving focus. In a horizontal toolbar, put a single text input last: arrow keys also move its text cursor. Text buttons should compose a normal Button with render.

The default surface is ghost. Font size uses the existing Combobox without a visible label. Choose a preset or enter a custom integer from 8 to 72px. Enter or blur commits the value; values outside the range are clamped. These limits belong to this example.

Installation

Install

Basic usage

Structures

Examples

Outline

Add a boundary around the toolbar with variant="outline".

Use the toolbar to format this text.

Mixed controls

Combine a Select for Paragraph, H1, H2 and H3, a Bold toggle, and a Reset action. Reset restores Paragraph and clears Bold.

A clearer start

New projects now open with a short setup guide. You can skip it and return to it at any time.

Vertical tools

Combine document commands with a persistent grid toggle. Zoom and Rotate change the document view. The separator turns with the toolbar.

Document100%

Disabled group

Disable related formatting controls while keeping other actions available.

Use the toolbar to format this text.

API reference

Behavior and advanced props follow Base UI Toolbar.