A framework-agnostic automated table of contents component! Super simple to use, just provide a content container and another container where the TOC would be mounted, and Voila!
Checkout the demo page here.
npm i --save @theiliad/tictoc
You need to create a
div (or any other DOM element) inside of which you'd like the TOC to be mounted (in this case we're using
<div id="toc">, as well as another element that includes your content (in this case
;;contentContainer: documentmountTo: document;
In-browser CDN usage:
The project is built using Typescript, with minimal dependency usage.
Typedoc generated API references can be found here.