The Toc parts read the sections found by Paper — from the PDF outline when present, otherwise from headings in the text — and highlight the one being read.
Anatomy
Usage
Items expose data-active and data-in-path; every view accepts an item snippet to render items yourself. Clicking navigates with history.
API reference
Toc.Tree
`maxDepth` defaults to 3. Renders a <div> (or your element via child) and accepts its HTML attributes.
data-activedata-depthdata-in-pathdata-pdf-tocdata-pdf-toc-groupdata-pdf-toc-itemToc.Flat
`maxDepth` defaults to 1. Renders a <div> (or your element via child) and accepts its HTML attributes.
data-activedata-depthdata-in-pathdata-partdata-pdf-tocdata-pdf-toc-groupdata-pdf-toc-itemToc.Breadcrumb
Renders a <div> (or your element via child) and accepts its HTML attributes.
data-activedata-partdata-pdf-tocdata-pdf-toc-itemToc.Progress
Renders a <div> (or your element via child) and accepts its HTML attributes.
data-activedata-partdata-pdf-tocdata-pdf-toc-segmentToc.Rail
Renders a <div> (or your element via child) and accepts its HTML attributes.
data-activedata-depthdata-in-pathdata-partdata-pdf-tocdata-pdf-toc-dot