Select API

React Select rectangle-selection props and callbacks.

Select mounts a background rectangle-selection surface backed by a core RectSelectController.

PropMeaning
callbacksSelectCallbacks — selection start and change events
className, stylePresentation for the marquee element
idElement id (default select-container)

The marquee element carries data-snapline-type="selection"; its geometry is written imperatively by the controller, so style it with CSS rather than React state. Read the current selection at any time with getSelectedNodes(engine).

Per-node selection behavior (for example toggle-on-shift) is decided by the node’s resolveSelectionMode callback, not by Select.