hooks

use-bounded-vector

1-D or 2-D pointer position on a ref'd element — absolute (position within bounds) or relative (delta from grab point). The gesture primitive for knobs, sliders, pads.

0.50

An absolute 1-D track — drag the dot. The value normalizes to 0–1 within the element's bounds.

Installation

import from @workspace/ui module-owned, not registry-installable

Usage