MDX components
The components for Fumadocs MDX content.
Installation
Usage
Spread defaultMdxComponents into your MDX components:
It covers everything Fumadocs MDX's default preset emits:
| Key | Renders |
|---|---|
pre | CodeBlock for Shiki output |
CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, CodeBlockTab | Code tabs from tab="..." code blocks and ```npm blocks |
h1–h6 | Heading with anchor links |
a | Fumadocs Core's Link (Next.js Link for internal links) |
img | Next.js Image |
table | A horizontally scrollable table |
Card, Cards | Cards |
Callout, CalloutContainer, CalloutTitle, CalloutDescription | Callouts |
Relative links
createRelativeLink resolves links to other MDX files ([Next](./next.mdx)) to their page URLs. It works in server components only: