Page table of contents
A table of contents that follows the reader through a long article and highlights the current section.
- Tailwind
- React
- CSS
- WordPress
Description
On large screens the table of contents sticks in its column; on mobile it sits at the top of the article. The visible section is marked with aria-current and an accent line, computed once per frame while scrolling. Without JavaScript the anchor links work as usual.
Code
Loading the code…
The code of this component in
Archive contents
sommaire-page-html-tailwind.zip3 files · 5 Ko
- index.html9 Ko
- README.md2 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 2026.
Reviews
No reviews yet.
In the same spirit

A slim bar at the top of the page with a message, a link and a close button; once closed, it stays hidden for the period you choose.
- Tailwind
- React
- CSS
- WordPress

A sticky sidebar table of contents for blog posts: it highlights the section being read, shows the reading time left and folds into a list under the title on mobile.
- Tailwind
- React
- CSS
- WordPress

A column of dots on the side of the page that follows the section being read and lets visitors jump to it, with a label on hover and focus.
- Tailwind
- React
- CSS
- WordPress

Step indicator
FreeAn order step indicator: finished steps clickable to go back, the current step announced, upcoming steps locked.
- Tailwind
- React
- CSS
- WordPress