Skip to content

Commit 3f29854

Browse files
committed
chore: automatically make content components available in MDX pages
1 parent df6a984 commit 3f29854

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
import { Tab, Tabs } from "fumadocs-ui/components/tabs";
12
import defaultMdxComponents from "fumadocs-ui/mdx";
23
import type { MDXComponents } from "mdx/types";
34

5+
import { Callout } from "./components/Callout";
6+
47
export function getMDXComponents(components?: MDXComponents): MDXComponents {
58
return {
69
...defaultMdxComponents,
10+
Tabs,
11+
Tab,
712
...components,
13+
// Add custom components as lowercase to follow MDX convention
14+
Callout: Callout,
815
};
916
}

0 commit comments

Comments
 (0)