Layout Links
Customise the shared navigation links on all layouts.
Overview
Fumadocs allows adding additional links to your layouts with a links
prop, like linking to your "showcase" page.
You can see all supported items below:
Link Item
A link to navigate to a URL/href, can be external.
Active Mode
The conditions to be marked as active.
Mode | Description |
---|---|
url | When browsing the specified url |
nested-url | When browsing the url and its child pages like /blog/post |
none | Never be active |
Secondary
Set the item as secondary, secondary items will be displayed differently on navbar.
Icon Item
Same as link item, but is shown as an icon button. Icon items are secondary by default.
Navigation Menu
A navigation menu containing link items.
Note that the description
field will only be displayed on the navbar in Home Layout.
Custom Item
Display a custom component.
GitHub URL
There's also a shortcut for adding GitHub repository link item.
How is this guide?