# Toc Documentation ## Installation ```bash jsrepo add ui/toc ``` ## Components ### Toc The root component for rendering a table of contents. #### Props | Prop | Type | Default Value | Required | Bindable | Description | |------|------|--------------|----------|----------|-------------| | toc | type Heading = { index: number; ref: Element; kind: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; id?: string; level: number; label: string; active: boolean; children: Heading[]; } | - | true | false | The table of contents data, an array of Heading objects. (Comes from UseToc) | | class | string | - | false | false | Additional classes to apply to the root element. | | isChild | boolean | false | false | false | Indicates whether this is a child component or root component. |