Ignoring Images
By default, all images in your documentation content are zoomable when using the Starlight Image Zoom plugin with a few exceptions.
Exceptions
The following images are ignored by the Starlight Image Zoom plugin:
- Icons rendered using the Starlight
<Icon>
component - Images embedded in interactive elements such as buttons, links, etc.
- Images embedded in elements with the
not-content
CSS class
Ignoring specific images
The Starlight Image Zoom plugin will ignore images with the data-zoom-off
attribute. You can add this attribute to any image to prevent it from being zoomable.
The code above generates the following image on the page, which is not zoomable:
Photo by Андрей Сизов on Unsplash