---
title: Toolbar
description: A container for grouping a set of buttons and controls.
links:
doc: https://base-ui.com/react/components/toolbar#api-reference
---
## Preview
## Installation
CLI
Manual
```bash
npx @olyx/cli@latest add 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 {
Toolbar,
ToolbarButton,
ToolbarGroup,
ToolbarSeparator,
} from "@/components/ui/toolbar"
import { Toggle } from "@/components/ui/toggle"
import { Button } from "@/components/ui/button"
```
```tsx
}>
Bold
}>
Italic
}>Save
```
## API Reference
### Toolbar
Root component. Styled wrapper for `Toolbar.Root` from Base UI.
### 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. Renders a vertical `Separator`.
### ToolbarLink
Link within the toolbar. Alias for `Toolbar.Link` from Base UI.
### ToolbarInput
Input within the toolbar. Alias for `Toolbar.Input` from Base UI.
All props from [Base UI Toolbar](https://base-ui.com/react/components/toolbar#api-reference) are also supported.