- Introduced multiple new MDX files covering various topics including comparisons, customization, internationalization, manual installation, markdown usage, and component documentation. - Enhanced the overall structure and organization of the documentation to improve user experience and accessibility. - Added a meta JSON file to define the documentation structure and navigation. - Implemented new layout files for different document types, improving the flexibility of the documentation framework.
31 lines
484 B
Plaintext
31 lines
484 B
Plaintext
---
|
|
title: 内联目录
|
|
description: 在文档中添加内联目录
|
|
preview: inlineTOC
|
|
---
|
|
|
|
## 使用方法
|
|
|
|
将 TOC 项目传递给组件。
|
|
|
|
```mdx
|
|
import { InlineTOC } from 'fumadocs-ui/components/inline-toc';
|
|
|
|
<InlineTOC items={toc} />
|
|
```
|
|
|
|
### 在页面中使用
|
|
|
|
您可以在每个页面中添加内联目录。
|
|
|
|
```tsx
|
|
<DocsPage>
|
|
...
|
|
<InlineTOC items={toc} />
|
|
...
|
|
</DocsPage>
|
|
```
|
|
|
|
## 参考
|
|
|
|
{/* <AutoTypeTable path="./content/docs/props.ts" name="InlineTOCProps" /> */} |