useTocEnhancer<T extends HTMLElement = HTMLElement>( options?: EnhanceTocOptions,): { api: RefObject<null | TocApi>; ref: RefObject<null | T> } Type Parameters
- T extends HTMLElement = HTMLElement
Returns { api: RefObject<null | TocApi>; ref: RefObject<null | T> }
Ref hook that builds a table of contents from the surrounding document.