UNPKG

@plone/volto

Version:
24 lines (23 loc) 1.1 kB
/** * Image component * @param {object} item - Context item that has the image field (can also be a catalog brain or summary) * @param {string} imageField - Key of the image field inside the item, or inside the image_scales object of the item if it is a catalog brain or summary * @param {string} src - URL of the image to be used if the item field is not available * @param {string} alt - Alternative text for the image * @param {boolean} loading - (default: eager) set to `lazy` to lazy load the image * @param {boolean} responsive - (default: false) set to `true` to add the `responsive` class to the image * @param {string} className - Additional classes to add to the image */ declare function Image({ item, imageField, src, alt, loading, responsive, className, ...imageProps }: object): import("react/jsx-runtime").JSX.Element; declare namespace Image { namespace propTypes { let item: any; let imageField: any; let src: any; let alt: any; let loading: any; let responsive: any; let className: any; } } export default Image;