childrenRequired | React.ReactNode | Not set | TableOfContents.Item or TableOfContents.Group elements; none renders nothing |
Group.childrenRequired | React.ReactNode | Not set | — |
Group.collapsible | boolean | undefined | Not set | Whether the header opens and closes the group; `false` makes it a plain label
over items that always show. |
Group.defaultOpen | boolean | undefined | Not set | Whether the group starts open (uncontrolled). |
Group.labelRequired | React.ReactNode | Not set | The group header's label. |
Group.leading | React.ReactNode | Not set | A leading element on the header row (icon). |
Group.onOpenChange | ((open: boolean) => void) | undefined | Not set | Called when the header opens or closes the group. |
Group.open | boolean | undefined | Not set | Whether the group is open (controlled). |
Group.trailing | React.ReactNode | Not set | A trailing element on the header row (count). |
Item.active | boolean | undefined | Not set | The section in view: ink 1 and the marker on the track, and `aria-current="location"`. |
Item.childrenRequired | React.ReactNode | Not set | — |
Item.leading | React.ReactNode | Not set | A leading element (icon, dot), before the label. |
Item.targetId | string | undefined | Not set | The id of the heading this item scrolls to. The link points at `#targetId`
unless `href` is given. |
Item.trailing | React.ReactNode | Not set | A trailing element (count), after the label. |
label | string | undefined | Table of contents | Names the navigation landmark |
title | React.ReactNode | On this page | The title above the list; null shows none |