Image

An image that can open a full-screen preview. The preview rotates and zooms the image, zooms with the wheel or a double click, and lets you drag a zoomed image around.

Features5APIThemingAccessibility

Basic

Without preview the component renders a plain image with its alt, sizes and lazy loading.

Alpine lake

Preview

preview adds a zoom button over the image. The preview has rotate and zoom buttons and closes with Escape, the close button or a click outside the image.

Dawn over the ridge

Hover the image and press the eye

Zoom

previewSrc shows another file in the preview, for example a larger one. zoomStep, minZoom and maxZoom set the zoom range; drag a zoomed image to look around and double-click to switch between the normal and the largest scale.

Night sky

Templates

txImageIndicator replaces the content of the zoom button. txImagePreview replaces the preview content; its style carries the rotate and zoom transform and close closes the preview.

Quiet coast

Design tokens

dt changes the tokens of one image: here a solid toolbar with square buttons.

Pine forest