UNPKG

react-highlight-selector

Version:

Text highlighter with customizable palette and text copier

25 lines (23 loc) 627 B
export type SelectionType = { meta: string text: string startContainerText?: string endContainerText?: string id: string className?: string [Key: string]: any } export type PopoverChildrentype = React.FC<{ handleCopy?: (selection: SelectionType) => void selection: SelectionType removeSelection: (slection: SelectionType, identifier: string) => void updateSelection: (id: string, updatedSelection: SelectionType, identifier: string) => void disableMultiColorHighlight?: boolean identifier: string }> export type XpathType = { start: string end: string startOffset: number endOffset: number }