---
title: Toolbar
description: A container for grouping a set of buttons and controls.
links:
doc: https://base-ui.com/react/components/toolbar#api-reference
---
## Installation
CLI
Manual
```bash
npx shadcn@latest add @coss/toolbar
```
Install the following dependencies:
```bash
npm install @base-ui/react
```
Copy and paste the following code into your project.
Update the import paths to match your project setup.
## Usage
```tsx
import { Button } from "@/registry/default/ui/button"
import { Toggle } from "@/registry/default/ui/toggle"
import {
Toolbar,
ToolbarButton,
ToolbarGroup,
ToolbarSeparator,
} from "@/registry/default/ui/toolbar"
```
```tsx
}>Bold
}>Underline
}>Save
```
## API Reference
### Toolbar
Root component. Styled wrapper for `Toolbar.Root` from Base UI with flex layout.
### ToolbarGroup
Groups related toolbar items. Styled wrapper for `Toolbar.Group` from Base UI.
### ToolbarButton
Button within the toolbar. Alias for `Toolbar.Button` from Base UI. Use with `render` prop to render as Toggle or Button.
### ToolbarSeparator
Visual separator between toolbar items. Styled wrapper for `Toolbar.Separator` from Base UI.
### ToolbarLink
Link within the toolbar. Alias for `Toolbar.Link` from Base UI.