Page outline and catalogue index built on List Item. Use toc for on-page headings with optional nest line and scroll spy. Use index for sectioned side navigation.
Also known as: toc, table of contents, on this page, catalogue index, side nav, outline, contents
Install with the CLI, or copy the component source into your project.
Add contents-nav (npm)
npx --yes -p github:itsvigneshv/default-file-ui#main df-ui add contents-nav
On-page outline with nested muted rows and a nest guide line. scrollSpy is off in the demo so the selected row stays stable.
Same toc tree with nestLine false so nested rows indent without a guide line.
Catalogue-style index with section labels and top dividers between groups.
Flat index list without section labels.
Build the toc from parts. ListItemNest controls the nest guide line per group.
Index built from sections, items, and a separator for flat groupings.
Page outline and catalogue index built on List Item. Use variant toc for on-page headings with nested rows, optional nest guide line, and scroll spy. Use variant index for sectioned side navigation. Pass scrollRoot for the host scrollport. Compose with ContentsNavHeading, ContentsNavSection, ContentsNavItem, and ListItemNest, or pass items and sections.