prmbr-image-mksaas/content/docs/components/inline-toc.mdx
2025-06-09 00:21:43 +08:00

32 lines
471 B
Plaintext

---
title: Inline TOC
description: Add Inline TOC into your documentation
preview: inlineTOC
---
## Usage
Pass TOC items to the component.
```mdx
import { InlineTOC } from 'fumadocs-ui/components/inline-toc';
<InlineTOC items={toc} />
```
### Use in Pages
You can add inline TOC into every page.
```tsx
<DocsPage>
...
<InlineTOC items={toc} />
...
</DocsPage>
```
## Reference
{/* <AutoTypeTable path="./content/docs/props.ts" name="InlineTOCProps" /> */}