Fumadocs

内联 TOC

将内联 TOC 添加到您的文档中

Install to your codebase

Easier customisation & control.

用法

将 TOC 项目传递给组件。

import { InlineTOC } from 'fumadocs-ui/components/inline-toc';

<InlineTOC items={toc} />

在页面中使用

您可以将内联 TOC 添加到每个页面中。

<DocsPage>
  ...
  <InlineTOC items={toc} />
  ...
</DocsPage>

参考

Prop

Type

How is this guide?

Last updated on