
Images
Add images to provide visual context, examples, or decoration to your documentation.Basic image syntax
Use Markdown syntax to add images to your documentation:HTML image embeds
For more control over image display, use HTML<img> tags:
Resize images with inline styles
Use JSX inline styles with thestyle attribute to resize images:
Disable image zoom
To disable the default zoom on click for images, add thenoZoom property:
Link images
To make an image a clickable link, wrap the image in an anchor tag and add thenoZoom property:
Images within anchor tags automatically display a pointer cursor to indicate they are clickable.
Light and dark mode images
To display different images for light and dark themes, use Tailwind CSS classes:SVG images
SVG files that useforeignObject elements render differently in production than in local development. Mintlify’s image CDN strips foreignObject from SVGs as a security measure, which can truncate or hide text and other embedded HTML content.
This commonly affects SVGs exported from tools like draw.io that have HTML text formatting or word wrap turned on. To fix this, disable Formatted Text and Word Wrap on all labels in your diagram before exporting to SVG. See the draw.io documentation for more information on SVG exports.
Videos
Mintlify supports HTML tags in Markdown, giving you flexibility to create rich content.YouTube embeds
Embed YouTube videos using iframe elements:Self-hosted videos
Use the HTML<video> element for self-hosted video content:
Autoplay videos
To autoplay a video, use:When using JSX syntax, write double-word attributes in camelCase:
autoPlay, playsInline, allowFullScreen.iframes
Embed external content using iframe elements:Related resources
Frame component reference
Learn how to use the Frame component for presenting images.