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 copyText to copy for this area highlight.
Optional deleteCustom delete icon. Replaces the default trash icon.
Optional extraExtra buttons rendered in the same toolbar row, after the copy button. Use this to add consumer-defined actions (e.g. a comment toggle) without needing a second, separate popup.
Optional extraExtra content rendered below the toolbar row, in the same slot as the built-in style panel (e.g. a comment editor opened by an extraButtons toggle).
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 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.