Image Zoom #851
Unanswered
DataHawker
asked this question in
Q&A
Image Zoom
#851
Replies: 3 comments
-
Add the component to your MDX components prop in docs page.tsx See #840 (reply in thread) for details |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks. I got it to work. It's definitely out of the norm for me. Do you have any good recommendations to add the aviator to the right of the theme selector for a dropdown? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Add it like this, in your import { ImageZoom } from "fumadocs-ui/components/image-zoom";
<DocsBody>
<MDX
components={{
...defaultMdxComponents,
img: props => <ImageZoom {...props as any} />
}}
/>
</DocsBody> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm dumb. How do I get the image zoom to work? I just know how to bring in images by ( ) I have read the docs like 20 times but I can't see where to make this work. Do I have to update the [slug] page and import it into the DocBody?
Beta Was this translation helpful? Give feedback.
All reactions