2026-03-24 20:24:08 +00:00
|
|
|
---
|
|
|
|
|
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
|
|
|
|
|
|
2026-07-13 07:19:24 +00:00
|
|
|
- [NumberField](../components/number-field)
|
2026-03-24 20:24:08 +00:00
|
|
|
- [useNodeProps](./use-node-props)
|