Skip to main content

SelectArea

The Select Area component is a wrapper for a selection interaction, which stretches to fill the dimensions of its parent element. The parent is responsible for using the selection value to identify what children elements fall inside the selection.

nametyperequiredcomment
childrenReactNode | ReactNode[]yes

the SelectArea should be the parent of any other elements that require user interaction via the mouse.

ariaLabelstringno
classNamestringno
onSelectionChange(selection: Selection) => voidno
onSelectionEnd(e: PointerEvent<Element>) => voidno
onSelectionStart(e: PointerEvent<Element>) => voidno
roleAriaRoleno
styleCSSPropertiesno
Result
Loading...
Live Editor