Optional
boundsreact-rnd bounds on the highlight area. This is useful for preventing the user moving the highlight off the viewer/page. See react-rnd docs.
The highlight to be rendered as an AreaHighlight.
Optional
isHas the highlight been auto-scrolled into view? By default, this will render the highlight red.
Optional
styleCustom styling to be applied to the AreaHighlight component.
Optional
onA callback triggered whenever the highlight area is either finished being moved or resized.
The updated highlight area.
Optional
onOptional
onEvent called whenever the user tries to move or resize an AreaHighlight.
The props type for AreaHighlight.