OptionalcontentSelector?: stringSelector for the region whose headings populate the list. Defaults to main, article.
Optionalheadings?: stringSelector for which headings to include. Defaults to h2,h3.
OptionalonValueChange?: (value: string | null) => voidCalled with the id of the heading in view whenever it changes.
OptionalscrollSpy?: booleanHighlight the entry for the heading currently in view. Defaults to true.
Optionalwatch?: booleanRebuild the list automatically when the content region changes. Defaults to true.
Options for enhanceToc.