Configuration object
Image source (base64, blob URL, or data URL). Can be either a static string or a function that receives params with data and value, returning a string
Filename to display and use for downloads. Can be either a static string or a function that receives params with data and value, returning a string
Custom error message to display when image loading fails. Can be either a static string or a function that receives params with data and value, returning a string
Custom loading message to display while image is loading. Can be either a static string or a function that receives params with data and value, returning a string
Debounce time in milliseconds for image loading. Defaults to 300
HTML id attribute for the image element
Basic usage with static image
image({
src: 'data:image/png;base64,iVBORw0KGgoAAAANSU...',
filename: 'screenshot.png'
});
Image viewer component for displaying and interacting with images.