Highlight the navigation link of the section in view, for tables of contents and one-page menus, with aria-current, click locking and scroll containers, for vanilla JavaScript, any framework and plain HTML.
typescript navigation table-of-contents scroll toc scrollspy scroll-spy active-link samline aria-current
-
Updated
Nov 20, 2026 - TypeScript