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

432 B

title description
useToolbar Primitive context helper for ToolbarRoot descendants.

useToolbar

useToolbar() reads the local toolbar context provided by ToolbarRoot.

Use it inside toolbar descendants that need access to tools, active state, or tool selection helpers.