Skip to content

Code components - Responsive images

A standalone version of next/image is available to output responsive images.

import Image from 'next-image-standalone';
const Cover = ({ photo }) => {
// Add `photo` as an Image prop to have an object which contains the following properties:
// src, alt, width, height
return <Image {...photo} />;
};