Sidebar Links
Customise sidebar navigation links on Docs Layout.
Overview
Sidebar items are rendered from the page tree you passed to <DocsLayout />
.
For source.pageTree
, it generates the tree from your file structure, you can see Routing for available patterns.
You may hardcode it too:
Sidebar Tabs
A navigation component to switch between tabs, it will be hidden unless one of its items is active.
You can add items from page tree by creating a meta.json
file (Root Folder):
Or specify them explicitly:
Set it to false
to disable:
Want further customisations?
You can specify more props to the Docs Layout component.
Decoration
Change the icon/styles of tabs.
How is this guide?