Zoomable Image
Allow zoom-in images in your documentation

Cookie を使用しています
必須 Cookie はアプリの動作に必要です。任意の分析、サポート、マーケティング Cookie は、サイトとサービスの改善に役立ちます。 Cookie ポリシー.
Allow zoom-in images in your documentation

import { ImageZoom } from 'fumadocs-ui/components/image-zoom';
import defaultMdxComponents from 'fumadocs-ui/mdx';
return (
<MdxContent
components={{
...defaultMdxComponents,
img: (props) => <ImageZoom {...(props as any)} />,
// other Mdx components
}}
/>
);Now image zoom will be automatically enabled on all images.
A default sizes property will be defined for Next.js <Image /> component if not specified.