横幅

在页面顶部显示横幅。

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
导航目标。
borderboolean
true
是否在横幅底部显示边框。