NavigationItem
Core interface for navigation items
Properties
titlestring
The navigation item titledescriptionstring
The navigation item descriptionpagestring
The navigation page, if set it redirects to the page + matches based on routinghrefstring
The navigation href, if set it redirects but does not match based on routingiconReact.ReactNode
The navigation item iconcolorstring
Accent color (any CSS color) for this item. Used by
logoTrailingproduct switchers and accent-aware themes (e.g.terrarium) to recolor the UI per product — the active item'scoloris applied as--theme-color-primary.dropdownMenu
Nested navigation rendered as a dropdown menu under this item.
Recursive — a child may itself declare
dropdownMenuto create submenus (e.g.api → [Browser SDK, REST API, GraphQL]). Supported on header anchors and tabs. Accepts a plain item array, or the object form DropdownMenucarrying menu-level options (e.g.
).DropdownMenuDropdownMenu
Object form of NavigationItem.dropdownMenu : the menu items plus menu-level options.itemsarray of NavigationItemRequired
Core interface for navigation itemstitlestring
The navigation item titledescriptionstring
The navigation item descriptionpagestring
The navigation page, if set it redirects to the page + matches based on routinghrefstring
The navigation href, if set it redirects but does not match based on routingiconReact.ReactNode
The navigation item iconcolorstring
Accent color (any CSS color) for this item. Used by `logoTrailing` product switchers and accent-aware themes (e.g. `terrarium` ) to recolor the UI per product — the active item's `color` is applied as `--theme-color-primary` .dropdownMenu
Nested navigation rendered as a dropdown menu under this item. Recursive — a child may itself declare `dropdownMenu` to create submenus (e.g. `api → [Browser SDK, REST API, GraphQL]` ). Supported on header anchors and tabs. Accepts a plain item array, or the object form DropdownMenu carrying menu-level options (e.g. `{ itemsPerColumn: 7, items: [...] }` ).DropdownMenuDropdownMenu
Object form of NavigationItem.dropdownMenu : the menu items plus menu-level options.itemsarray of NavigationItemRequired
The menu items.itemsPerColumnnumber
Maximum items rendered in ONE COLUMN — overflowing items wrap into additional columns (e.g. `7` renders a 12-item menu as two columns of 7 + 5). Omit for a single column.
NavigationItem[]NavigationItem[]
float"center" | "right"
Render this item on the RIGHT of the header rather than with its siblings, before the search box — for a tab that is a reference you look things up in rather than a stop in the reading order (e.g. an API reference). Honored only by the `tabs` appearance, and there only for `"right"` — the union matches WebEditorHeader , which intersects this type and already carries both values. The item keeps everything a centered tab has, including `dropdownMenu` and route-prefix active highlighting.pagesarray of NavigationItem
Nested navigation items — recursive. Honored ONLY by sidebar-dropdown surfaces ( `navigation.sidebarDropdown` and `appearance: "sidebarDropdown"` segments): an entry with `pages` (typically without `page` / `href` ) renders as an inline-expandable GROUP row inside the dropdown popover — clicking it expands its children (indented) within the same popover. `title` , `icon` , and `description` apply to the group row. Other appearances (tabs, logoTrailing) ignore nesting.trigger"hover" | "click"
How the `dropdownMenu` opens. Defaults to `"hover"` .
itemsPerColumnnumber
Maximum items rendered in ONE COLUMN — overflowing items wrap into additional columns (e.g.
7renders a 12-item menu as two columns of 7 + 5). Omit for a single column.
NavigationItem[]NavigationItem[]
float"center" | "right"
Render this item on the RIGHT of the header rather than with its siblings, before the search box — for a tab that is a reference you look things up in rather than a stop in the reading order (e.g. an API reference).
Honored only by the
tabsappearance, and there only for"right"— the union matches WebEditorHeader , which intersects this type and already carries both values. The item keeps everything a centered tab has, includingdropdownMenuand route-prefix active highlighting.pagesarray of NavigationItem
Core interface for navigation itemstitlestring
The navigation item titledescriptionstring
The navigation item descriptionpagestring
The navigation page, if set it redirects to the page + matches based on routinghrefstring
The navigation href, if set it redirects but does not match based on routingiconReact.ReactNode
The navigation item iconcolorstring
Accent color (any CSS color) for this item. Used by `logoTrailing` product switchers and accent-aware themes (e.g. `terrarium` ) to recolor the UI per product — the active item's `color` is applied as `--theme-color-primary` .dropdownMenu
Nested navigation rendered as a dropdown menu under this item. Recursive — a child may itself declare `dropdownMenu` to create submenus (e.g. `api → [Browser SDK, REST API, GraphQL]` ). Supported on header anchors and tabs. Accepts a plain item array, or the object form DropdownMenu carrying menu-level options (e.g. `{ itemsPerColumn: 7, items: [...] }` ).DropdownMenuDropdownMenu
Object form of NavigationItem.dropdownMenu : the menu items plus menu-level options.itemsarray of NavigationItemRequired
The menu items.itemsPerColumnnumber
Maximum items rendered in ONE COLUMN — overflowing items wrap into additional columns (e.g. `7` renders a 12-item menu as two columns of 7 + 5). Omit for a single column.
NavigationItem[]NavigationItem[]
float"center" | "right"
Render this item on the RIGHT of the header rather than with its siblings, before the search box — for a tab that is a reference you look things up in rather than a stop in the reading order (e.g. an API reference). Honored only by the `tabs` appearance, and there only for `"right"` — the union matches WebEditorHeader , which intersects this type and already carries both values. The item keeps everything a centered tab has, including `dropdownMenu` and route-prefix active highlighting.pagesarray of NavigationItem
Nested navigation items — recursive. Honored ONLY by sidebar-dropdown surfaces ( `navigation.sidebarDropdown` and `appearance: "sidebarDropdown"` segments): an entry with `pages` (typically without `page` / `href` ) renders as an inline-expandable GROUP row inside the dropdown popover — clicking it expands its children (indented) within the same popover. `title` , `icon` , and `description` apply to the group row. Other appearances (tabs, logoTrailing) ignore nesting.trigger"hover" | "click"
How the `dropdownMenu` opens. Defaults to `"hover"` .
trigger"hover" | "click"
How the
dropdownMenuopens. Defaults to"hover".
Show your support! Star us on GitHub ⭐️