Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Reference for Nuxt UI v4 (125+ components built on Reka UI + Tailwind CSS v4) including forms, overlays, and theming.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
components/navigation-menu.md
1# NavigationMenu23A list of links that can be displayed horizontally or vertically.45> Based on [Reka UI NavigationMenu](https://reka-ui.com/docs/components/navigation-menu)67## Key Props89- `items`: as an array of objects with the following properties:1011- `label?: string`{lang="ts-type"}12- `icon?: string`{lang="ts-type"}13- `avatar?: AvatarProps`{lang="ts-type"}14- `badge?: string | number | BadgeProps`{lang="ts-type"}15- `tooltip?: TooltipProps`{lang="ts-type"}16- `trailingIcon?: string`{lang="ts-type"}17- `type?: 'label' | 'trigger' | 'link'`{lang="ts-type"}18- `defaultOpen?: boolean`{lang="ts-type"}19- `open?: boolean`{lang="ts-type"}20- `value?: string`{lang="ts-type"}21- `disabled?: boolean`{lang="ts-type"}22- [`slot?: string`{lang="ts-type"}](#with-custom-slot)23- `onSelect?: (e: Event) => void`{lang="ts-type"}24- `children?: NavigationMenuChildItem[]`{lang="ts-type"}25- `class?: any`{lang="ts-type"}26- `ui?: { linkLeadingAvatarSize?: ClassNameValue, linkLeadingAvatar?: ClassNameValue, linkLeadingIcon?: ClassNameValue, linkLabel?: ClassNameValue, linkLabelExternalIcon?: ClassNameValue, linkTrailing?: ClassNameValue, linkTrailingBadgeSize?: ClassNameValue, linkTrailingBadge?: ClassNameValue, linkTrailingIcon?: ClassNameValue, label?: ClassNameValue, link?: ClassNameValue, content?: ClassNameValue, childList?: ClassNameValue, childLabel?: ClassNameValue, childItem?: ClassNameValue, childLink?: ClassNameValue, childLinkIcon?: ClassNameValue, childLinkWrapper?: ClassNameValue, childLinkLabel?: ClassNameValue, childLinkLabelExternalIcon?: ClassNameValue, childLinkDescription?: ClassNameValue }`{lang="ts-type"}2728You can pass any property from the [Link](/docs/components/link#props) component such as `to`, `target`, etc.2930- `orientation`: to change the orientation of the NavigationMenu.31- `highlight`: to display a highlighted border for the active item.32- `color`: to change the color of the NavigationMenu.33- `variant`: to change the variant of the NavigationMenu.34- `arrow`: to display an arrow on the NavigationMenu content when items have children.35- `slot`:3637## Usage3839```vue40<UNavigationMenu41<!-- props here -->42/>43```4445## Slots4647- `#content`48- `#item`49