- Updated content collections to include new schemas for better document handling. - Added new documentation files for comparisons, customization, and internationalization. - Introduced a manual installation guide and improved markdown support. - Updated package.json with new dependencies for enhanced functionality. - Added new images for documentation and improved layout components for better user experience. - Adjusted TypeScript configurations for better path management.
32 lines
463 B
Plaintext
32 lines
463 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" />
|