Appearance
Function: NavigationMenu()
ts
function NavigationMenu(props: UiNavigationMenuProps): Block;Defined in: src/renderer/blocks/index.ts:1552
Experimental
NavigationMenu — top-level horizontal nav with link items and trigger items that open rich dropdown content panels.
Parameters
| Parameter | Type |
|---|---|
props | UiNavigationMenuProps |
Returns
Example
ts
NavigationMenu({
items: [
{type: 'link', label: 'Docs', href: '/docs', active: true},
{
type: 'trigger',
label: 'Products',
content: {
variant: 'text',
links: [
{label: 'Assistant', description: 'Build agentic skills', href: '/products/assistant'},
{label: 'Designer', description: 'Visual flow editor', href: '/products/designer'},
],
},
},
],
});