openpencil/packages/docs/programmable/sdk/api/advanced/use-toolbar-state.md

17 lines
465 B
Markdown
Raw Normal View History

---
title: useToolbarState
description: Presentation-oriented toolbar state helper for mobile category paging.
---
# useToolbarState
`useToolbarState()` returns mobile-category paging state and helpers like `goPrev()` and `goNext()` for responsive toolbar shells.
Use it when building toolbar layouts on top of `ToolbarRoot`.
## Related APIs
- [ToolbarRoot](../components/toolbar-root)
- [ToolbarItem](../components/toolbar-item)
- [useToolbar](./use-toolbar)