diff --git a/src/runtime/components/NavigationMenu.vue b/src/runtime/components/NavigationMenu.vue index 87d236e769..ba58982af2 100644 --- a/src/runtime/components/NavigationMenu.vue +++ b/src/runtime/components/NavigationMenu.vue @@ -3,7 +3,7 @@ import type { NavigationMenuRootProps, NavigationMenuRootEmits, NavigationMenuContentProps, NavigationMenuContentEmits, AccordionRootProps } from 'reka-ui' import type { AppConfig } from '@nuxt/schema' import theme from '#build/ui/navigation-menu' -import type { AvatarProps, BadgeProps, LinkProps, PopoverProps, TooltipProps } from '../types' +import type { AvatarProps, BadgeProps, ChipProps, LinkProps, PopoverProps, TooltipProps } from '../types' import type { ArrayOrNested, DynamicSlots, MergeTypes, NestedItem, EmitsToProps, ComponentConfig } from '../types/utils' type NavigationMenu = ComponentConfig @@ -57,6 +57,11 @@ export interface NavigationMenuItem extends Omit [key: string]: any @@ -137,6 +142,11 @@ export interface NavigationMenuProps * @defaultValue 'label' */ labelKey?: keyof NestedItem + /** + * Display a chip on the item when the menu is collapsed with the children list. + * @defaultValue false + */ + chip?: boolean | ChipProps class?: any ui?: NavigationMenu['slots'] } @@ -309,7 +319,12 @@ function getAccordionDefaultValue(list: NavigationMenuItem[]) { :disabled="item.disabled" @select="item.onSelect" > - + + + + + +