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

16 lines
456 B
Markdown

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