styledsea

Zoomable Image

Allow zoom-in images in your documentation

banner

Usage

Replace img with ImageZoom in your MDX components.

A default sizes property will be defined if not specified

page.tsx
import { ImageZoom } from 'styledsea-docs-interface/components/image-zoom';
import defaultMdxComponents from 'styledsea-docs-interface/mdx';
 
<MDX
  components={{
    ...defaultMdxComponents,
    img: (props) => <ImageZoom {...(props as any)} />,
  }}
/>;

Last updated on

On this page

Edit on GitHub