Skip to main content
All patterns

Interaction

Document minimap rail

A table of contents that tracks reading position, not last-heading-crossed: an IntersectionObserver picks the topmost visible section, highlights its node, and keeps a live "3 of 6" position readout.

Reach for it when building

  • long-form article tables of contents
  • transcript and log navigation
  • multi-section settings pages
  • legal and policy documents
  • threaded discussion overviews
  • toc
  • intersection-observer
  • sticky
  • position
  • scrolling