What It Does
@kit/fumadocs provides shared MDX options, MDX components, and docs UI primitives used by this docs site.
When To Use
- You want docs/blog content versioned in Git.
Prerequisites
- Fumadocs configured in your app (
source.config.ts, docs routes, page loader).
Important
This page describes the standard kit integration path; adapt app-specific paths and config names when your project differs.
How To Use
Key exports:
@kit/fumadocs/mdx-options@kit/fumadocs/mdx-components@kit/fumadocs/ui/*@kit/fumadocs/llm
Example source config:
import { transformers } from '@kit/cms/lib/highlight-code';
import { defaultMdxOptions } from '@kit/fumadocs/mdx-options';
import { defineConfig } from 'fumadocs-mdx/config';
export default defineConfig({
mdxOptions: defaultMdxOptions(transformers),
});Components
DocsSidebar
The docs sidebar renders hierarchical navigation for your documentation tree.
DocsLayoutProps
| Prop | Type | Default |
|---|---|---|
tree* | PageTree.Root | |
sidebar | SidebarOptions | |
containerProps | HTMLAttributes<HTMLDivElement> | |
themeSwitch | { enabled?: boolean;... | |
searchToggle | Partial<{ enabled: boolean; components: Partial<{ sm: ReactNode; lg: ReactNode; }>... | |
i18n | boolean | I18nConfig<string> | false |
githubUrl | string | |
links | LinkItemType[] | |
nav | Partial<NavOptions> | |
children | ReactNode |
DocsBottomNavigation
Bottom navigation renders previous/next links between documentation pages.
DocsBottomNavigationProps
| Prop | Type | Default |
|---|---|---|
neighbours* | { previous?: Item; next?:... |
MCP Context
capability: fumadocs_integration
entrypoints:
- @kit/fumadocs/mdx-options
- @kit/fumadocs/mdx-components
- @kit/fumadocs/ui/*
inputs:
- mdx_content_tree
outputs:
- rendered_docs_pages
constraints:
- docs source metadata must be valid
side_effects:
- static page generationAgent Recipe
- Configure source and MDX options.
- Reuse shared mdx component map.
- Build docs routes and static params from source loader.
Troubleshooting
- Rendering issues often come from invalid MDX frontmatter or component imports.
- Missing navigation usually means broken
meta.jsonchains.
Related
CMS
Content workflows powered by Fumadocs and Notion integrations.
Notion
Configure Notion as a typed content backend.
How is this guide?
Last updated on 3/23/2026