NavigationItem
Core interface for navigation items
Properties
titlestringdescriptionstringpagestringhrefstringiconReact.ReactNodecolorstringdropdownMenuDropdownMenuDropdownMenuitemsarray of NavigationItemRequiredtitlestringdescriptionstringpagestringhrefstringiconReact.ReactNodecolorstringdropdownMenuDropdownMenuDropdownMenuitemsarray of NavigationItemRequireditemsPerColumnnumberNavigationItem[]NavigationItem[]float"center" | "right"pagesarray of NavigationItemtrigger"hover" | "click"itemsPerColumnnumberNavigationItem[]NavigationItem[]float"center" | "right"pagesarray of NavigationItemtitlestringdescriptionstringpagestringhrefstringiconReact.ReactNodecolorstringdropdownMenuDropdownMenuDropdownMenuitemsarray of NavigationItemRequireditemsPerColumnnumberNavigationItem[]NavigationItem[]float"center" | "right"pagesarray of NavigationItemtrigger"hover" | "click"trigger"hover" | "click"
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 .
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. ).
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.
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.
How the dropdownMenu opens. Defaults to "hover" .
Show your support! Star us on GitHub ⭐️