Unverified Commit 1ab90c14 authored by Julien Birgand's avatar Julien Birgand Committed by GitHub

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
parent 68ecbddd
...@@ -101,8 +101,7 @@ When `responsive`, the image will scale the dimensions down for smaller ...@@ -101,8 +101,7 @@ When `responsive`, the image will scale the dimensions down for smaller
viewports and scale up for larger viewports. viewports and scale up for larger viewports.
When `fill`, the image will stretch both width and height to the dimensions of When `fill`, the image will stretch both width and height to the dimensions of
the parent element, usually paired with the parent element, usually paired with the [`objectFit`](#objectFit) property.
[object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
Try it out: Try it out:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment