Skip to content

TableOfContent.Root and TableOfContent.Data#

TypeDescription
onExpandedChange(expanded: boolean) => void(optional) Called with the requested disclosure state after button activation or browser find-in-page. Update expanded when controlling the state.

TableOfContent.Item#

TypeDescription
onClickReact.MouseEventHandler<HTMLAnchorElement>(optional) Called before native fragment navigation and destination focus. Call event.preventDefault() to handle navigation yourself.
Suggest an edit