跳至內容
Fumadocs

版面配置

版面配置元件清單。

概覽

Fumadocs UI 提供呈現內容所需的基本版面配置。

設定

每個版面配置都支援一組共用的選項。

建議您將這些選項存放在一個檔案中,再傳遞給各個版面配置。

lib/layout.shared.tsx
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';

export function baseOptions(): BaseLayoutProps {
  return {
    nav: {
      title: 'My App',
    },
  };
}

關於 links 與 nav 選項的詳細說明,請參閱相關文件。

屬性

型別

How is this guide?

最後更新於