- Table of Contents
- First Section
- Second Section
- Third Section
Installation
Run the following command:
Usage
Examples
Simple
- Table of Contents
- First Section
- Second Section
- Third Section
Nested
You can place a list inside of another list to create a nested table of contents.
- Nested Table of Contents
- First Section
- Third Section
Active Item
A link can be set to active if the user is currently viewing the section it links to.
When setting the isActive
prop to true
on the TableOfContentsLink
component, it will be styled as the active item.
- Active Item Table of Contents
- First Section
- Second Section
- Third Section