Image Modal Usagebolt-trigger is needed to create an image modal that gets triggered from either the image component or the device viewer component. The following are examples of how you can assemble the necessary pieces together. Please note that you should use the width prop on bolt-modal to accommodate your needs, optimal width is about 70 characters wide, full width will take up the width of the page.
Enlarge image and show captionCreate a thumbnail image trigger and pass a figure with image and caption into the modal content. Note: make sure you upload a high res image (up to 2880px wide) if you intend to show the image as big as possible.Modal width is set to full.
Enlarge image (inside device viewer) and show captionCreate a device viewer trigger and pass a figure with image and caption into the modal content. Note: make sure you upload a high res image (up to 2880px wide) if you intend to show the image as big as possible.Modal width is set to optimal.