Components

Navbar 导航顶栏

面向站点与文档门户的全局导航顶栏,支持品牌 Logo、桌面链接、快捷 CTA 与移动端折叠抽屉。

基础顶栏

集成品牌、徽标链接、操作按钮及移动端抽屉。

<Navbar
  brand-title="ReCloud"
  :links="[
    { label: '功能特性', href: '#features' },
    { label: '组件文档', to: '/components/button' },
    { label: '更新日志', to: '/components/timeline', badge: 'v0.3.0' }
  ]"
>
  <template #actions>
    <Button size="sm" variant="ghost">登录</Button>
    <Button size="sm">快速开始</Button>
  </template>
</Navbar>

API 参考

属性类型默认值说明
brandTitlestring''品牌标题文本。
brandHrefstring'/'品牌 Logo 的普通外链目标。
brandTostringundefined品牌 Logo 的路由跳转目标(Vue Router / Nuxt)。
linksNavbarLink[][]导航链接列表:label、href?、to?、badge?、active?。
stickybooleantrue是否在页面顶部粘性吸顶固定。
borderedbooleantrue是否展示底部微边框。
slot: logoslot—自定义品牌 Logo 图标。
slot: brandslot—自定义品牌标题区域。
slot: linksslot—自定义桌面端链接。
slot: mobile-linksslot—自定义移动端抽屉内的导航内容;桌面端 #links 不会自动复用至移动端。
slot: actionsslot—右侧 CTA 操作按钮组。
slot: extraslot—右侧辅助组件(如主题切换、搜索)。