middag-react
    Preparing search index...

    Interface TableOfContentsProps

    interface TableOfContentsProps {
        ariaLabel?: string;
        className?: string;
        history?: boolean;
        items: TableOfContentsItem[];
        offset?: number;
        targetRef?: RefObject<HTMLElement | null>;
    }
    Index
    ariaLabel?: string

    Accessible label for the nav. Defaults to a translated built-in.

    className?: string
    history?: boolean

    Sync the active section to the URL hash. Default true.

    offset?: number

    Pixel offset applied when detecting/scrolling to a section.

    targetRef?: RefObject<HTMLElement | null>

    Ref to the scrollable container holding the sections. Omit to track the document.