openpencil/packages/docs/programmable/sdk/api/components/toolbar-item.md
2026-03-24 23:24:08 +03:00

17 lines
433 B
Markdown

---
title: ToolbarItem
description: Headless toolbar item primitive for a single editor tool.
---
# ToolbarItem
`ToolbarItem` exposes active-state and selection behavior for one toolbar tool.
Use it inside `ToolbarRoot` when you want custom button markup but shared tool-selection wiring.
## Related APIs
- [ToolbarRoot](./toolbar-root)
- [useToolbar](../advanced/use-toolbar)
- [useToolbarState](../advanced/use-toolbar-state)