We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4f5455 commit 942b2d4Copy full SHA for 942b2d4
src/mdx-components.tsx
@@ -1,9 +1,11 @@
1
-import defaultMdxComponents from 'fumadocs-ui/mdx';
2
-import type { MDXComponents } from 'mdx/types';
+import { ImageZoom } from "fumadocs-ui/components/image-zoom";
+import defaultMdxComponents from "fumadocs-ui/mdx";
3
+import type { MDXComponents } from "mdx/types";
4
5
export function getMDXComponents(components?: MDXComponents): MDXComponents {
6
return {
7
...defaultMdxComponents,
8
+ img: (props) => <ImageZoom {...(props as any)} />,
9
...components,
10
};
11
}
0 commit comments