# NavigationMenu

> 页面之间的真实链接导航，横向展开导航面板，纵向就地展开层级。

网页来源：/components/navigation-menu

版本：@quirekit/ui 0.3.1；源码修订：d79a6b48d00e+worktree。此文档对应当前源码构建，接入方式以开始使用为准。

接入前置：[开始使用](/raw/components/getting-started.md)（Vue、样式、主题与图标 Provider）。

用真实链接组织顶部导航和侧栏。`items` 提供名称与目标地址，分组通过 `children` 添加子导航。除“链接与新标签页”外，下列示例均在当前页演示，不离开文档。

## 横向面板与展开方式

`trigger="click"`（默认）通过点击展开，再次点击、外部点击或 Escape 关闭；鼠标移出不会关闭。`trigger="hover"` 通过悬停展开、移出延迟关闭，鼠标点击不反向切换；键盘和触屏仍可激活。

### 示例：navigation-menu/panels

文件：`panels.vue`

```vue
<script setup lang="ts">
import { ref } from 'vue';
import { QuireIcon, QuireNavigationMenu, QuireSwitch } from '@quirekit/ui/vue';
import type { QuireKitNavigationMenuItem } from '@quirekit/ui/vue';

const hover = ref(false);
const current = ref('navigation');
const items: readonly QuireKitNavigationMenuItem[] = [
  { key: 'guide', label: '指南', children: [
    { key: 'start', label: '开始使用', children: [
      { key: 'installation', label: '安装与配置', href: '#' },
      { key: 'principles', label: '设计价值观', href: '#' }
    ] },
    { key: 'development', label: '开发', children: [
      { key: 'contributing', label: '组件开发指南', href: '#' }
    ] }
  ] },
  { key: 'design', label: '设计规范', children: [
    { key: 'color', label: '色彩', description: '为内容、交互和反馈选择清楚的语义色。', href: '#' },
    { key: 'typography', label: '文字', description: '用字号、行高与字重建立阅读层级。', href: '#' },
    { key: 'spacing', label: '间距', description: '组织相关内容，保持合适的留白。', href: '#' }
  ] },
  { key: 'components', label: '组件', children: [
    { key: 'button', label: 'Button', description: '触发明确的操作，呈现执行状态。', href: '#' },
    { key: 'dialog', label: 'Dialog', description: '聚焦一项需要确认或完成的任务。', href: '#' },
    { key: 'navigation', label: 'NavigationMenu', description: '组织页面入口，展示当前所在位置。', href: '#' },
    { key: 'pagination', label: 'Pagination', description: '在结果集合中切换页码与每页条数。', href: '#' },
    { key: 'popover', label: 'Popover', description: '在当前上下文中展示补充信息。', href: '#' },
    { key: 'progress', label: 'Progress', description: '传达任务进度和等待状态。', href: '#' }
  ] },
  { key: 'changelog', label: '组件目录', href: '#' },
  { key: 'help', label: '帮助', disabled: true }
];
const icons: Readonly<Record<string, string>> = { guide: 'fileText', design: 'sparkles', components: 'columns', changelog: 'listBullet', help: 'circleInfo' };
</script>

<template>
  <div data-navigation-panels class="grid min-w-0 gap-qk-group p-qk-surface">
    <QuireSwitch v-model:checked="hover" label="经过时展开" />
    <div class="flex min-h-64 min-w-0 justify-center pt-qk-group">
      <QuireNavigationMenu @navigate="(item, event) => { event.preventDefault(); current = item.key }" :items="items" :trigger="hover ? 'hover' : 'click'" size="md" panel-layout="grid" :current-key="current" aria-label="文档顶部导航" style="max-width: calc(var(--qk-space-major) * 16)">
        <template #leading="{ item }"><QuireIcon :name="icons[item.key] ?? 'fileText'" :size="20" /></template>
        <template #trailing="{ item }"><span v-if="'target' in item && item.target === '_blank'" aria-hidden="true">↗</span></template>
      </QuireNavigationMenu>
    </div>
  </div>
</template>
```

## 单列导航

`panelLayout="list"` 适合短链接。上方的 `grid` 示例适合带图标和说明的入口，宽度不足时自动转为单列。

### 示例：navigation-menu/list

文件：`list.vue`

```vue
<script setup lang="ts">
import { QuireNavigationMenu } from '@quirekit/ui/vue';
const items = [
  { key: 'design', label: '设计规范', children: [
    { key: 'color', label: '色彩', href: '#' },
    { key: 'typography', label: '文字', href: '#' },
    { key: 'spacing', label: '间距', href: '#' }
  ] },
  { key: 'components', label: '组件', children: [
    { key: 'navigation', label: 'NavigationMenu', href: '#' },
    { key: 'button', label: 'Button', href: '#' }
  ] }
];
</script>
<template>
  <div class="min-h-44 p-qk-surface">
    <QuireNavigationMenu @navigate="(_, event) => event.preventDefault()" :items="items" current-key="navigation" panel-layout="list" aria-label="单列顶部导航" />
  </div>
</template>
```

## 纵向分组

设置 `orientation="vertical"` 就地展开分组。每个分组都能再次点击收起，`defaultValue` 指定初始展开项。

### 示例：navigation-menu/vertical

文件：`vertical.vue`

```vue
<script setup lang="ts">
import { ref } from 'vue';
import { QuireIcon, QuireNavigationMenu, QuireSeparator, QuireSwitch } from '@quirekit/ui/vue';
import type { QuireKitNavigationMenuItem } from '@quirekit/ui/vue';

const compact = ref(false);
const value = ref(['components']);
const current = ref('navigation');
const items: readonly QuireKitNavigationMenuItem[] = [
  { key: 'guide', label: '指南', children: [
    { key: 'installation', label: '安装与配置', href: '#' },
    { key: 'contributing', label: '组件开发指南', href: '#' }
  ] },
  { key: 'design', label: '设计规范', children: [
    { key: 'color', label: '色彩', href: '#' },
    { key: 'typography', label: '文字', href: '#' },
    { key: 'spacing', label: '间距', href: '#' }
  ] },
  { key: 'components', label: '组件', children: [
    { key: 'button', label: 'Button', href: '#' },
    { key: 'dialog', label: 'Dialog', href: '#' },
    { key: 'navigation', label: 'NavigationMenu', href: '#' },
    { key: 'pagination', label: 'Pagination', href: '#' },
    { key: 'popover', label: 'Popover', href: '#' },
    { key: 'progress', label: 'Progress', href: '#' }
  ] }
];
const footer: readonly QuireKitNavigationMenuItem[] = [
  { key: 'catalog', label: '组件目录', href: '#' },
  { key: 'help', label: '帮助', disabled: true }
];
const icons: Readonly<Record<string, string>> = { guide: 'fileText', design: 'sparkles', components: 'columns', catalog: 'listBullet', help: 'circleInfo' };
</script>

<template>
  <div data-navigation-vertical class="flex justify-center p-qk-group">
    <div class="grid w-full min-w-0 gap-qk-inline" style="max-width: calc(var(--qk-space-major) * 5)">
      <QuireSwitch v-model:checked="compact" label="紧凑列表" />
      <p class="m-0 px-qk-inline py-qk-inline-tight text-qk-helper font-qk-control text-qk-text-primary">文档导航</p>
      <QuireNavigationMenu @navigate="(item, event) => { event.preventDefault(); current = item.key }" v-model:value="value" :items="items" orientation="vertical" :density="compact ? 'compact' : 'regular'" :current-key="current" aria-label="文档侧栏导航">
        <template #leading="{ item }"><QuireIcon :name="icons[item.key] ?? 'fileText'" :size="20" /></template>
      </QuireNavigationMenu>
      <QuireSeparator decorative />
      <QuireNavigationMenu @navigate="(item, event) => { event.preventDefault(); current = item.key }" :items="footer" orientation="vertical" :density="compact ? 'compact' : 'regular'" aria-label="更多文档入口">
        <template #leading="{ item }"><QuireIcon :name="icons[item.key]" :size="20" /></template>
        <template #trailing="{ item }"><span v-if="'target' in item && item.target === '_blank'" aria-hidden="true">↗</span></template>
      </QuireNavigationMenu>
    </div>
  </div>
</template>
```

## 收起为图标栏

`collapsed` 将纵向导航收起为图标栏。点击图标可打开侧向子导航，内部多层分组仍可收起；恢复侧栏时保留原展开状态。

`tooltip` 控制图标文字提示，默认开启。通过 `leading` 提供图标；没有图标时显示名称首字，完整名称仍可被读屏读取。

### 示例：navigation-menu/collapsed

文件：`collapsed.vue`

```vue
<script setup lang="ts">
import { ref } from 'vue';
import { QuireButton, QuireIcon, QuireLocaleProvider, QuireNavigationMenu, QuireSeparator, QuireSwitch } from '@quirekit/ui/vue';
const collapsed = ref(false);
const tooltip = ref(true);
const hover = ref(false);
const rtl = ref(false);
const expanded = ref(['components', 'forms']);
const current = ref('navigation');
const items = [
  { key: 'guide', label: '指南', children: [
    { key: 'start', label: '安装与配置', href: '#' },
    { key: 'values', label: '设计价值观', href: '#' }
  ] },
  { key: 'components', label: '组件', children: [
    { key: 'navigation', label: 'NavigationMenu', href: '#' },
    { key: 'forms', label: '表单输入', children: [
      { key: 'input', label: 'Input', href: '#' },
      { key: 'select', label: 'Select', href: '#' }
    ] },
    { key: 'dialog', label: 'Dialog', href: '#' }
  ] },
  { key: 'catalog', label: '组件目录', href: '#' },
  { key: 'help', label: '帮助', disabled: true }
];
const icons: Readonly<Record<string, string>> = { guide: 'fileText', components: 'columns', forms: 'listBullet', catalog: 'listBullet', help: 'circleInfo' };
</script>
<template>
  <div data-navigation-collapsed class="grid gap-4 p-qk-surface">
    <div class="flex flex-wrap items-center gap-4">
      <QuireButton color="neutral" variant="outline" :aria-expanded="!collapsed" @click="collapsed = !collapsed">{{ collapsed ? '展开导航' : '收起导航' }}</QuireButton>
      <QuireSwitch v-model:checked="tooltip" label="图标文字提示" />
      <QuireSwitch v-model:checked="hover" label="悬停展开子导航" />
      <QuireSwitch v-model:checked="rtl" label="从右向左" />
    </div>
    <QuireSeparator decorative />
    <div class="min-h-72" :style="{ width: collapsed ? '36px' : 'min(100%, 240px)' }">
      <QuireLocaleProvider :locale="rtl ? 'ar' : 'zh-CN'">
      <QuireNavigationMenu @navigate="(item, event) => { event.preventDefault(); current = item.key }" v-model:value="expanded" :items="items" orientation="vertical" :collapsed="collapsed" :tooltip="tooltip" :trigger="hover ? 'hover' : 'click'" :current-key="current" aria-label="可收起侧栏">
        <template #leading="{ item }"><QuireIcon :name="icons[item.key] ?? 'fileText'" :size="20" /></template>
      </QuireNavigationMenu>
      </QuireLocaleProvider>
    </div>
  </div>
</template>
```

## 当前页与选中背景

`currentKey` 标记当前页，独立于分组展开。`highlight` 默认开启中性选中背景；设为 `false` 仅保留文字强调。hover、按下和展开不会把当前项的文字色改回普通色。

### 示例：navigation-menu/highlight

文件：`highlight.vue`

```vue
<script setup lang="ts">
import { QuireNavigationMenu } from '@quirekit/ui/vue';
const items = [
  { key: 'navigation', label: 'NavigationMenu', href: '#' },
  { key: 'button', label: 'Button', href: '#' },
  { key: 'popover', label: 'Popover', href: '#' }
];
</script>
<template>
  <div data-navigation-highlight class="grid gap-qk-group p-qk-surface sm:grid-cols-2">
    <div class="grid content-start gap-qk-inline">
      <p class="m-0 text-qk-helper text-qk-text-tertiary">中性背景</p>
      <QuireNavigationMenu @navigate="(_, event) => event.preventDefault()" :items="items" orientation="vertical" current-key="navigation" aria-label="背景强调导航" />
    </div>
    <div class="grid content-start gap-qk-inline">
      <p class="m-0 text-qk-helper text-qk-text-tertiary">仅文字强调</p>
      <QuireNavigationMenu @navigate="(_, event) => event.preventDefault()" :items="items" orientation="vertical" :highlight="false" current-key="navigation" aria-label="文字强调导航" />
    </div>
  </div>
</template>
```

## 链接与新标签页

叶子使用 `href` 跳转；`target="_blank"` 在新标签页打开。分组按钮只展开子导航，分类首页应作为独立链接放入子项。

### 示例：navigation-menu/basic

文件：`basic.vue`

```vue
<script setup lang="ts">
import { QuireNavigationMenu } from '@quirekit/ui/vue';
const items = [{ key: 'home', label: '工作空间', href: '#navigation-destination' }, { key: 'docs', label: '团队文档', href: '#navigation-destination' }, { key: 'guide', label: '使用指南（新标签页）', href: '/components/getting-started/', target: '_blank' }];
</script>
<template><div data-navigation-basic class="grid min-w-0 gap-qk-group p-qk-surface"><QuireNavigationMenu :items="items" current-key="docs" aria-label="工作空间导航" /><p id="navigation-destination" class="m-0 text-qk-text-secondary">页面导航保留真实链接；当前页由宿主指定。</p></div></template>
```

## 受控展开与路由

`v-model:value` 管理展开 key，`currentKey` 管理当前页面。接入客户端路由时通过 `navigate` 接收原始点击事件，保留修饰键和新标签页行为，并在跳转后安排页面焦点。

### 示例：navigation-menu/navigation

文件：`navigation.vue`

```vue
<script setup lang="ts">
import { nextTick, ref } from 'vue';
import { QuireNavigationMenu, QuireButton, type QuireKitNavigationMenuLink } from '@quirekit/ui/vue';
const value = ref<string[]>([]);
const current = ref('overview');
const message = ref('当前位置：概览');
const destination = ref<HTMLOutputElement | null>(null);
const items = [{ key: 'overview', label: '概览', href: '#navigation-overview' }, { key: 'manage', label: '管理', children: [{ key: 'members', label: '成员', href: '#navigation-members' }, { key: 'roles', label: '角色', href: '#navigation-roles' }] }];
/** @param item - Host destination. @param event - Original browser activation. */
async function navigate(item: QuireKitNavigationMenuLink, event: MouseEvent): Promise<void> {
  if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || (item.target && item.target !== '_self')) return;
  event.preventDefault(); current.value = item.key; value.value = []; message.value = `当前位置：${item.label}`;
  await nextTick(); destination.value?.focus();
}
</script>
<template><div data-navigation-controlled class="grid min-w-0 gap-qk-group p-qk-surface"><QuireButton @click="value = value.length ? [] : ['manage']">切换管理面板</QuireButton><QuireNavigationMenu v-model:value="value" :items="items" :current-key="current" aria-label="受控页面导航" @navigate="navigate" /><output ref="destination" tabindex="-1">{{ message }}</output></div></template>
```

## 禁用与数据更新

`disabled` 禁用整组导航；条目的 `disabled` 禁用该分支。删除分组后自动清理失效展开值；无 `href` 的叶子显示为静态文字。

### 示例：navigation-menu/states

文件：`states.vue`

```vue
<script setup lang="ts">
import { computed, ref } from 'vue';
import { QuireNavigationMenu, QuireSwitch } from '@quirekit/ui/vue';
const empty = ref(false); const disabled = ref(false); const remove = ref(false); const value = ref<string[]>([]);
const items = computed(() => empty.value ? [] : [
  { key: 'home', label: '可用首页', href: '#' },
  { key: 'static', label: '待发布', href: '' },
  { key: 'locked', label: '锁定页面', href: '#', disabled: true },
  { key: 'locked-group', label: '锁定分组', disabled: true, children: [{ key: 'private', label: '内部页面', href: '#' }] },
  { key: 'empty-group', label: '暂无子页面', children: [] },
  ...(!remove.value ? [{ key: 'updates', label: '更新', children: [{ key: 'changes', label: '变更记录', href: '#' }] }] : [])
]);
</script>
<template><div data-navigation-states class="grid min-w-0 gap-qk-group p-qk-surface"><div class="flex flex-wrap gap-qk-group"><QuireSwitch v-model:checked="disabled" label="禁用导航" /><QuireSwitch v-model:checked="empty" label="空导航数据" /><QuireSwitch v-model:checked="remove" label="移除更新分组" /></div><QuireNavigationMenu @navigate="(_, event) => event.preventDefault()" v-model:value="value" :items="items" :disabled="disabled" aria-label="状态导航" /><output>展开值：{{ value.join('、') || '无' }}</output></div></template>
```

## 尺寸与插槽

`size` 只调整横向顶层控件。`density="compact | regular"` 单独控制子导航与纵向列表，默认 regular；不会随按钮一起放大面板。`leading`、`trailing` 用于图标和静态提示，不放嵌套按钮。

### 示例：navigation-menu/sizes

文件：`sizes.vue`

```vue
<script setup lang="ts">
import { QuireNavigationMenu, QuireButton, QuireTag, QuireIcon } from '@quirekit/ui/vue';
const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as const;
const items = [{ key: 'home', label: '概览', href: '#' }, { key: 'docs', label: '文档', children: [{ key: 'draft', label: '草稿', href: '#' }] }];
</script>
<template><div data-navigation-sizes class="grid min-w-0 gap-qk-group p-qk-surface"><div v-for="size in sizes" :key="size" :data-navigation-size="size" class="flex min-w-0 items-start gap-4"><QuireButton :size="size">{{ size }} 保存</QuireButton><QuireNavigationMenu @navigate="(_, event) => event.preventDefault()" :items="items" :size="size" :aria-label="`${size} 导航`" current-key="home" /></div><QuireNavigationMenu @navigate="(_, event) => event.preventDefault()" :items="items" aria-label="图文导航"><template #leading="{ item }"><QuireIcon :name="item.key === 'home' ? 'columns' : 'fileText'" :size="20" /></template><template #trailing="{ item }"><QuireTag v-if="item.key === 'docs'" size="xs">3</QuireTag></template></QuireNavigationMenu></div></template>
```

## 长内容与阅读方向

长名称自动换行，弹层超高时内部滚动。[Locale Provider](/raw/components/locale-provider.md) 设为 `ar` 等从右向左的语言时，布局和方向键操作同步翻转；侧栏分组可收起，避免长列表占满页面。

### 示例：navigation-menu/long-content

文件：`long-content.vue`

```vue
<script setup lang="ts">
import { ref } from 'vue';
import { QuireLocaleProvider, QuireNavigationMenu, QuireSwitch } from '@quirekit/ui/vue';
const rtl = ref(false);
const items = [{ key: 'intro', label: '跨团队内容协作与审阅工作空间', href: '#' }, { key: 'resources', label: '完整资源与使用指南', children: [
  { key: 'long', label: 'VeryLongDocumentNavigationDestinationWithoutSpacesForNarrowLayoutReview', description: '保留完整名字与说明，让使用较窄窗口的人也能区分相似页面。', href: '#' },
  ...Array.from({ length: 14 }, (_, index) => ({ key: `page-${index}`, label: `协作流程第 ${index + 1} 项说明`, href: '#' }))
] }];
</script>
<template><div data-navigation-long class="grid min-w-0 gap-qk-group p-qk-surface"><QuireSwitch v-model:checked="rtl" label="从右向左阅读导航" /><div :dir="rtl ? 'rtl' : 'ltr'" class="grid min-w-0 gap-qk-group"><QuireLocaleProvider :locale="rtl ? 'ar' : 'zh-CN'"><QuireNavigationMenu @navigate="(_, event) => event.preventDefault()" :items="items" aria-label="长内容顶部导航" /><QuireNavigationMenu @navigate="(_, event) => event.preventDefault()" :items="items" orientation="vertical" aria-label="长内容侧栏导航" /></QuireLocaleProvider></div></div></template>
```

## 键盘操作

| 场景 | 操作 |
| --- | --- |
| 顶部入口 | 左右方向键移动；打开后 ArrowDown 进入子导航 |
| 图标栏入口 | 上下方向键移动；打开后 ArrowRight 进入（RTL 为 ArrowLeft） |
| 分组与链接 | Enter / Space 展开分组，Tab 移动，Enter 打开链接 |
| 弹层 | Escape 关闭并返回入口 |

## API

### QuireNavigationMenu

#### Props

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| items | 是 | — | 导航数据；每个 key 在整棵树中唯一。 |
| ariaLabel | 否 | — | 导航区域的可访问名称，用于区分多个导航；省略时取自语言包。 |
| orientation | 否 | "horizontal" | horizontal 为顶部面板，vertical 为侧栏分组。 |
| panelLayout | 否 | "list" | 横向面板使用单列 list 或图文 grid；grid 在窄空间自动单列。 |
| currentKey | 否 | — | 当前页面的 key，不改变展开状态。 |
| defaultValue | 否 | \[\] | 初始展开项；横向只使用第一个有效一级分组。 |
| size | 否 | "sm" | 横向顶层控件尺寸，默认 sm。 |
| density | 否 | "regular" | 侧栏和子导航的独立密度，默认 regular。 |
| disabled | 否 | false | 禁止整组导航跳转与展开。 |
| trigger | 否 | "click" | 弹层的成套开关策略：click 或 hover；内联分组始终点击展开。 |
| highlight | 否 | true | 是否显示当前项的中性背景，默认 true；关闭后保留文字强调。 |
| collapsed | 否 | false | 将纵向侧栏收起为图标栏，通过侧向弹层访问子导航。 |
| tooltip | 否 | true | 图标栏悬停或聚焦时显示名称提示，默认 true。 |
| value | 否 | — | 展开分组的 key 数组，与当前路由分开控制。 |

**items**

```ts
readonly QuireKitNavigationMenuItem[]
```

```ts
readonly ({
  /** Native URL; absent or empty values render a static span. */
  href?: undefined | string;
  /** Native browsing context. */
  target?: string | undefined;
  /** Native relationship; blank-window links default to noopener noreferrer. */
  rel?: string | undefined;
  /** Links never simultaneously act as expansion triggers. */
  children?: undefined;
  /** Stable key, unique throughout the whole tree. */
  key: string;
  /** Visible accessible name. */
  label: string;
  /** Supporting text, primarily useful inside panels. */
  description?: string | undefined;
  /** Disables this entry and all of its descendants. */
  disabled?: boolean | undefined;
} | {
  /** Ordered destinations and nested categories. */
  children: readonly QuireKitNavigationMenuItem[];
  /** Put a category landing page in an explicit child link. */
  href?: undefined;
  /** Stable key, unique throughout the whole tree. */
  key: string;
  /** Visible accessible name. */
  label: string;
  /** Supporting text, primarily useful inside panels. */
  description?: string | undefined;
  /** Disables this entry and all of its descendants. */
  disabled?: boolean | undefined;
})[]
```

**ariaLabel**

```ts
string | undefined
```

```ts
undefined | string
```

**orientation**

```ts
"horizontal" | "vertical" | undefined
```

```ts
undefined | "horizontal" | "vertical"
```

**panelLayout**

```ts
"list" | "grid" | undefined
```

```ts
undefined | "list" | "grid"
```

**currentKey**

```ts
string | undefined
```

```ts
undefined | string
```

**defaultValue**

```ts
string[] | undefined
```

```ts
undefined | (string)[]
```

**size**

```ts
QuireKitControlSize | undefined
```

```ts
undefined | "sm" | "md" | "xs" | "lg" | "xl"
```

**density**

```ts
QuireKitListDensity | undefined
```

```ts
undefined | "compact" | "regular"
```

**disabled**

```ts
boolean | undefined
```

**trigger**

```ts
"hover" | "click" | undefined
```

```ts
undefined | "hover" | "click"
```

**highlight**

```ts
boolean | undefined
```

**collapsed**

```ts
boolean | undefined
```

**tooltip**

```ts
boolean | undefined
```

**value**

```ts
string[] | undefined
```

```ts
undefined | (string)[]
```

#### Events

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| update\:value | 否 | — |  |
| navigate | 否 | — |  |

**update:value**

```ts
[value: string[] | undefined]
```

**navigate**

```ts
[item: QuireKitNavigationMenuLink, event: MouseEvent]
```

#### Slots

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| leading | 否 | — | 标签前的静态图标。 |
| trailing | 否 | — | 标签后的静态计数或提示。 |

**leading**

```ts
QuireKitNavigationMenuSlotProps
```

```ts
{
  /** Original entry. */
  item: {
    /** Native URL; absent or empty values render a static span. */
    href?: undefined | string;
    /** Native browsing context. */
    target?: string | undefined;
    /** Native relationship; blank-window links default to noopener noreferrer. */
    rel?: string | undefined;
    /** Links never simultaneously act as expansion triggers. */
    children?: undefined;
    /** Stable key, unique throughout the whole tree. */
    key: string;
    /** Visible accessible name. */
    label: string;
    /** Supporting text, primarily useful inside panels. */
    description?: string | undefined;
    /** Disables this entry and all of its descendants. */
    disabled?: boolean | undefined;
  } | {
    /** Ordered destinations and nested categories. */
    children: readonly (QuireKitNavigationMenuItem)[];
    /** Put a category landing page in an explicit child link. */
    href?: undefined;
    /** Stable key, unique throughout the whole tree. */
    key: string;
    /** Visible accessible name. */
    label: string;
    /** Supporting text, primarily useful inside panels. */
    description?: string | undefined;
    /** Disables this entry and all of its descendants. */
    disabled?: boolean | undefined;
  };
  /** Whether the entry itself is the current destination. */
  current: boolean;
}
```

**trailing**

```ts
QuireKitNavigationMenuSlotProps
```

```ts
{
  /** Original entry. */
  item: {
    /** Native URL; absent or empty values render a static span. */
    href?: undefined | string;
    /** Native browsing context. */
    target?: string | undefined;
    /** Native relationship; blank-window links default to noopener noreferrer. */
    rel?: string | undefined;
    /** Links never simultaneously act as expansion triggers. */
    children?: undefined;
    /** Stable key, unique throughout the whole tree. */
    key: string;
    /** Visible accessible name. */
    label: string;
    /** Supporting text, primarily useful inside panels. */
    description?: string | undefined;
    /** Disables this entry and all of its descendants. */
    disabled?: boolean | undefined;
  } | {
    /** Ordered destinations and nested categories. */
    children: readonly (QuireKitNavigationMenuItem)[];
    /** Put a category landing page in an explicit child link. */
    href?: undefined;
    /** Stable key, unique throughout the whole tree. */
    key: string;
    /** Visible accessible name. */
    label: string;
    /** Supporting text, primarily useful inside panels. */
    description?: string | undefined;
    /** Disables this entry and all of its descendants. */
    disabled?: boolean | undefined;
  };
  /** Whether the entry itself is the current destination. */
  current: boolean;
}
```

#### 公开实例成员

无。

#### 相关类型

```ts
type QuireKitNavigationMenuItem = {
  /** Native URL; absent or empty values render a static span. */
  href?: undefined | string;
  /** Native browsing context. */
  target?: string | undefined;
  /** Native relationship; blank-window links default to noopener noreferrer. */
  rel?: string | undefined;
  /** Links never simultaneously act as expansion triggers. */
  children?: undefined;
  /** Stable key, unique throughout the whole tree. */
  key: string;
  /** Visible accessible name. */
  label: string;
  /** Supporting text, primarily useful inside panels. */
  description?: string | undefined;
  /** Disables this entry and all of its descendants. */
  disabled?: boolean | undefined;
} | {
  /** Ordered destinations and nested categories. */
  children: readonly (QuireKitNavigationMenuItem)[];
  /** Put a category landing page in an explicit child link. */
  href?: undefined;
  /** Stable key, unique throughout the whole tree. */
  key: string;
  /** Visible accessible name. */
  label: string;
  /** Supporting text, primarily useful inside panels. */
  description?: string | undefined;
  /** Disables this entry and all of its descendants. */
  disabled?: boolean | undefined;
};
```

```ts
type QuireKitNavigationMenuLink = {
  /** Native URL; absent or empty values render a static span. */
  href?: undefined | string;
  /** Native browsing context. */
  target?: string | undefined;
  /** Native relationship; blank-window links default to noopener noreferrer. */
  rel?: string | undefined;
  /** Links never simultaneously act as expansion triggers. */
  children?: undefined;
  /** Stable key, unique throughout the whole tree. */
  key: string;
  /** Visible accessible name. */
  label: string;
  /** Supporting text, primarily useful inside panels. */
  description?: string | undefined;
  /** Disables this entry and all of its descendants. */
  disabled?: boolean | undefined;
};
```

```ts
type QuireKitNavigationMenuGroup = {
  /** Ordered destinations and nested categories. */
  children: readonly (QuireKitNavigationMenuItem)[];
  /** Put a category landing page in an explicit child link. */
  href?: undefined;
  /** Stable key, unique throughout the whole tree. */
  key: string;
  /** Visible accessible name. */
  label: string;
  /** Supporting text, primarily useful inside panels. */
  description?: string | undefined;
  /** Disables this entry and all of its descendants. */
  disabled?: boolean | undefined;
};
```

```ts
type QuireKitNavigationMenuSlotProps = {
  /** Original entry. */
  item: {
    /** Native URL; absent or empty values render a static span. */
    href?: string | undefined;
    /** Native browsing context. */
    target?: string | undefined;
    /** Native relationship; blank-window links default to noopener noreferrer. */
    rel?: string | undefined;
    /** Links never simultaneously act as expansion triggers. */
    children?: undefined;
    /** Stable key, unique throughout the whole tree. */
    key: string;
    /** Visible accessible name. */
    label: string;
    /** Supporting text, primarily useful inside panels. */
    description?: string | undefined;
    /** Disables this entry and all of its descendants. */
    disabled?: boolean | undefined;
  } | {
    /** Ordered destinations and nested categories. */
    children: readonly QuireKitNavigationMenuItem[];
    /** Put a category landing page in an explicit child link. */
    href?: undefined;
    /** Stable key, unique throughout the whole tree. */
    key: string;
    /** Visible accessible name. */
    label: string;
    /** Supporting text, primarily useful inside panels. */
    description?: string | undefined;
    /** Disables this entry and all of its descendants. */
    disabled?: boolean | undefined;
  };
  /** Whether the entry itself is the current destination. */
  current: boolean;
};
```
