Unverified Commit c3fd9e4e authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Add note to `next/future/image` about default styles. (#38978)

parent 413d35b7
......@@ -39,6 +39,13 @@ Compared to `next/image`, the new `next/future/image` component has the followin
- Note: there is no `fill` mode so `width` & `height` props are required
- Note: the [`onError`](#onerror) prop might behave differently
The default layout for `next/image` was `intrinsic`, which would shrink the `width` if the image was larger than it's container. Since no styles are automatically applied to `next/future/image`, you'll need to add the following CSS to achieve the same behavior:
```css
max-width: 100%;
height: auto;
```
## Required Props
The `<Image />` component requires the following properties.
......
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