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.
Optional colorCustom color presets for the style panel. Default: ["rgba(255, 226, 143, 1)", "#ffcdd2", "#c8e6c9", "#bbdefb", "#e1bee7"]
Optional deleteCustom delete icon. Replaces the default trash icon.
The highlight to be rendered as an AreaHighlight.
Optional highlightBackground color for the highlight. Default: "rgba(255, 226, 143, 1)" (yellow)
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 styleCustom style icon. Replaces the default palette icon.
Optional onA callback triggered whenever the highlight area is either finished being moved or resized.
The updated highlight area.
Optional onOptional onOptional onEvent called whenever the user tries to move or resize an AreaHighlight.
Optional onCallback triggered when the style changes.
The props type for AreaHighlight.