OptionalclassCustom CSS class for the container
OptionaldirectionReading direction for RTL support
OptionalfilterFilter function to determine which pages appear in TOC. By default, only pages with a title are included.
OptionalheadingCustom heading text. Default: "Table of Contents"
Callback to navigate to a specific page
OptionalpagePage semantics for generating titles and page numbers
OptionalrenderCustom render function for TOC entries. If not provided, uses default rendering.
Total number of pages in the book
Props for the TocPage component.