Skip to main content

Image

Image is a component for displaying responsive images with additional layout controls.

Usage

<Image 
src="/path/to/image.jpg"
objectFit="cover"
aspectRatio={16/9}
/>

Props

Image accepts all styled-system props from the following categories:

Additional Props

PropTypeDescription
objectFitstringCSS object-fit property
aspectRationumber \| stringAspect ratio of the image container