DocsPricingMy accountBuy Now
UI COMPONENTS / Table of Contents

Table of Contents. track the scroll.

On-page navigation with heading discovery and active section state.

Root + 2 atoms / Accessible / Composable

Table of Contents · runtimeATOMIC

Looping preview · scroll-spy active heading

Why it's good

Behavior, handled.

Table of Contents owns the parts that are tedious and easy to get wrong – so you can focus on the layout and the brand.

  • Heading discovery
  • Scroll-spy active state
  • Nested item structure
  • Docs-ready navigation
Compositions

Table of Contents becomes patterns.

Different structures made from the same atoms.

Sticky chapter navATOMIC
  • Article Layout
    • Table of Contentsroot
      • Article Bodyslot

      Sticky chapter nav

      Blog Post 1 pins Table of Contents beside the article body; heading branches and links are generated output.

      Blog Post 1
      Sidebar guideATOMIC
      • Guide Layout
        • Sidebar
          • Table of Contentsroot
            • Share Linksslot
            • Article Bodyslot

            Sidebar guide

            Blog Post 2 places Table of Contents in a guide sidebar alongside ordinary article utilities.

            Blog Post 2
            Horizontal chapter railATOMIC
            • Magazine Layout
              • Table of Contentsroot
                • Article Sectionsslot

                Horizontal chapter rail

                Blog Post 5 uses the same Table of Contents component in a magazine-style article layout.

                Blog Post 5
                Ready?

                Stop rebuilding Table of Contents.