From 1ab90c142c22e6e444488e4af5b308bcd33dd1e8 Mon Sep 17 00:00:00 2001 From: Julien Birgand Date: Sun, 16 May 2021 19:59:50 +0200 Subject: [PATCH] docs(image.md): update layout property part (#25149) When I first read the documentation about the `layout` property, I wondered how to apply the `object-fit` css property to the `Image` component. I think it makes sense to mention its `objectFit` property at this point. ## Documentation / Examples - [x] Make sure the linting passes --- docs/api-reference/next/image.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/api-reference/next/image.md b/docs/api-reference/next/image.md index e596719b242e8..7ce38c6b849e4 100644 --- a/docs/api-reference/next/image.md +++ b/docs/api-reference/next/image.md @@ -101,8 +101,7 @@ When `responsive`, the image will scale the dimensions down for smaller viewports and scale up for larger viewports. When `fill`, the image will stretch both width and height to the dimensions of -the parent element, usually paired with -[object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit). +the parent element, usually paired with the [`objectFit`](#objectFit) property. Try it out: