openpencil/packages/docs/programmable/sdk/api/components/toolbar-item.md

17 lines
433 B
Markdown
Raw Normal View History

---
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)