Skip to content

Commit 4be16ab

Browse files
committed
add TocForIndex component in styleguide
1 parent 0188eb3 commit 4be16ab

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

STYLE_GUIDE.md

+8
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,14 @@ Rendered as:
407407

408408
![Tag component](style-guide-images/crude-tag-ui.png)
409409

410+
## ToCForIndex
411+
412+
This component can be included in the root index.mdx files in any of the directories that hold a specific category of docs. This component will populate a list with the table of contents for the section.
413+
414+
Rendered as:
415+
416+
![TocForIndex component](style-guide-images/toc-for-index.png)
417+
410418
## Navbar (Top)
411419

412420
Top navbar's navigation data/dropdown list is manually populated. This file can be found at [src/data/navbar.json](src/data/navbar.json). If you're working on a very important new page, which links to a whole new category or an index, this is where to add them.

style-guide-images/toc-for-index.png

64 KB
Loading

0 commit comments

Comments
 (0)