TableOfContent.Root and TableOfContent.Data#
| Type | Description | |
|---|---|---|
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#
| Type | Description | |
|---|---|---|
onClick | React.MouseEventHandler<HTMLAnchorElement> | (optional) Called before native fragment navigation and destination focus. Call event.preventDefault() to handle navigation yourself. |