Interface ITableOfContentsItemsProps

Interface describing component properties.

interface ITableOfContentsItemsProps {
    heading: TableOfContents.IHeading;
    isActive: boolean;
    onCollapse: (heading: TableOfContents.IHeading) => void;
    onMouseDown: (heading: TableOfContents.IHeading) => void;
}

Properties

Heading to render.

isActive: boolean

Whether this item is active or not.

onCollapse: (heading: TableOfContents.IHeading) => void

Collapse/Expand event callback.

onMouseDown: (heading: TableOfContents.IHeading) => void

On mouse-down event callback.