Image

An image with a preview overlay, a fallback for a broken source and a placeholder for one still loading.

Anotomy

Structure of the image and how its internal parts are composed. These are its semantic parts, so they are also what the classNames and styles objects accept. On Image.PreviewGroup only the popup keys apply.

Image

Image anotomy
NameDescription
1rootThe wrapper around the picture, sized by width and height.
2imageThe real <img>, from src. Give it an alt. fallback is shown when src fails to load.
3coverThe layer shown on hover that opens the preview. preview={false} removes it.

Preview

The viewer that opens on a click, shown here for a preview group of three.
Image preview anotomy
NameDescription
1popup.rootThe layer over the page that holds the viewer. It is portalled to <body>, so these keys are how you reach it.
2popup.maskThe dimmed layer behind the picture.
3popup.bodyThe area that holds the zoomed picture.
4popup.footerThe bar at the bottom with the counter and the toolbar.
5popup.actionsThe toolbar: flip, rotate and zoom, and the arrows in a group. preview.actionsRender replaces it.
6popup.closeThe close button in the corner. preview.closeIcon replaces the glyph.