Links API
Show navigation links on every page
Introduction
You can configure the navigation links displayed on every page with Links API. It is available on Home Layout and Docs Layout.
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.
Filter
You can restrict where the item is displayed.
Icon Item
Same as link item, but is shown as an icon button on navbar. Icon items are secondary by default.
Button Item
Same as link item, but is shown as a button.
Navigation Menu
A navigation menu containing link items.
Note that the description
field will only be displayed on the navbar in Home Layout.
Menu Props
Specify the props for Radix UI Navigation Menu item in Home Layout.
Custom Item
Display a custom component.
Last updated on