Toolbar
Connected actions in a shared, sticky toolbar surface.
Examples
import { Button, Toolbar } from "@g4rcez/components";
<Toolbar aria-label="Document actions">
<Button theme="ghost-neutral" size="small">File</Button>
<Button theme="ghost-neutral" size="small">Edit</Button>
<Button theme="ghost-neutral" size="small">View</Button>
<Button theme="ghost-neutral" size="small">Help</Button>
</Toolbar>import { Button, Toolbar } from "@g4rcez/components";
import { TextBIcon, TextItalicIcon, TextUnderlineIcon, LinkIcon } from "@phosphor-icons/react";
<Toolbar aria-label="Text formatting">
<Button theme="ghost-neutral" size="icon" aria-label="Bold"><TextBIcon /></Button>
<Button theme="ghost-neutral" size="icon" aria-label="Italic"><TextItalicIcon /></Button>
<Button theme="ghost-neutral" size="icon" aria-label="Underline"><TextUnderlineIcon /></Button>
<Button theme="ghost-neutral" size="icon" aria-label="Insert link"><LinkIcon /></Button>
</Toolbar>import { Button, Toolbar } from "@g4rcez/components";
<Toolbar aria-label="Selection actions">
<Button theme="danger" size="small">Delete</Button>
<Button theme="secondary" size="small">Export</Button>
<Button theme="muted" size="small" disabled>Archive</Button>
</Toolbar>When to use Toolbar
Use when
You need the documented Toolbar interaction or presentation in a product workflow.
Avoid when
A native HTML element already provides the Toolbar behavior you need.
Accessibility
Keep the Toolbar labeled and use its documented keyboard interaction. The component preserves visible focus and communicates state without relying on color alone.
- Keep keyboard focus visible and follow the documented key commands.
- Provide an accessible name and connect descriptions or errors to the control.