# Toolbar

> A container for grouping related actions into a single keyboard-navigable bar, built on Base UI's Toolbar primitive. Ships Toolbar, ToolbarButton, ToolbarLink, ToolbarInput, ToolbarGroup and ToolbarSeparator. Each part uses the render prop so it can compose with buttons, toggle groups and inputs while keeping a single roving-tabindex focus model. Demos compose it with the Button, Tooltip and ToggleGroup components (shipped alongside).

- Author: [Cnippet](https://21st.dev/@cnippet.dev)
- License: mit
- Tags: Toolbar, Base UI, Editor
- npm dependencies: @base-ui-components/react
- Live preview: https://21st.dev/@cnippet.dev/components/cnippet-toolbar

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/cnippet.dev/cnippet-toolbar?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/toolbar.md
