openpencil/packages/docs/programmable/sdk/api/advanced/use-prop-scrub.md

16 lines
456 B
Markdown
Raw Normal View History

---
title: usePropScrub
description: Low-level helper for drag-to-scrub property updates with commit support.
---
# usePropScrub
`usePropScrub(editor)` coordinates live property updates during scrubbing and commits undo-aware changes when the interaction finishes.
Use it when building numeric controls that scrub selected node properties directly.
## Related APIs
- [ScrubInputRoot](../components/scrub-input-root)
- [useNodeProps](./use-node-props)