Skip to content

Commit 3f7591a

Browse files
committed
feat(mdx): Add icons to MDX components for enhanced rendering
1 parent 49796d0 commit 3f7591a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mdx-components.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import defaultMdxComponents from "fumadocs-ui/mdx";
22
import type { MDXComponents } from "mdx/types";
3+
import * as icons from "lucide-react";
34

45
// use this function to get MDX components, you will need it for rendering MDX
56
export function getMDXComponents(components?: MDXComponents): MDXComponents {
67
return {
8+
...(icons as unknown as MDXComponents),
79
...defaultMdxComponents,
810
...components,
911
};

0 commit comments

Comments
 (0)