横幅

Show a banner on the top of the page.

app.config.ts
export default defineAppConfig({
  shadcnDocs: {
    banner: {
      enable: true,
      showClose: true,
      content: 'Welcome to **shadcn-docs-nuxt**',
      to: 'https://github.com/ZTL-UwU/shadcn-docs-nuxt',
      target: '_blank',
      border: true,
    },
  },
});

参数

enableboolean
false
是否启用横幅.
showCloseboolean
true
是否显示关闭按钮.
tostring
导航链接. 如果不想导航, 请不要设置任何值.
contentstring
要显示的内容 (由 MDC 解析器解析).
targetTarget
_blank
导航 target.
borderboolean
true
是否显示横幅底部的边框.