react-pdf-highlighter-plus
interface DocumentOutlineProps {
    className?: string;
    classNames?: DocumentOutlineClassNames;
    currentPage?: number;
    defaultExpanded?: boolean;
    emptyContent?: ReactNode;
    isLoading?: boolean;
    itemClassNames?: OutlineItemClassNames;
    itemStyles?: OutlineItemStyles;
    loadingContent?: ReactNode;
    maxDepth?: number;
    onNavigate: ((item) => void);
    outline: null | ProcessedOutlineItem[];
    renderItem?: ((item, props) => ReactNode);
    showExpandIcons?: boolean;
    styles?: DocumentOutlineStyles;
}

Properties

className?: string

Custom class name

Custom class names for the outline (Tailwind-friendly)

currentPage?: number

Current page number for highlighting

defaultExpanded?: boolean

Default expanded state for all items

emptyContent?: ReactNode

Empty state content

isLoading?: boolean

Whether outline is still loading

itemClassNames?: OutlineItemClassNames

Custom class names for outline items (Tailwind-friendly)

itemStyles?: OutlineItemStyles

Custom styles for outline items

loadingContent?: ReactNode

Loading content

maxDepth?: number

Maximum depth to render

onNavigate: ((item) => void)

Callback when outline item is clicked

Type declaration

outline: null | ProcessedOutlineItem[]

Processed outline data

renderItem?: ((item, props) => ReactNode)

Custom item renderer

Type declaration

showExpandIcons?: boolean

Show expand/collapse icons

Custom styles for the outline