next.js
baaca4b6 - fix(docs): update width height value on example to sync with demo (#64147)

Commit
1 year ago
fix(docs): update width height value on example to sync with demo (#64147) I'm looking at the example code and demo for the Image component, [Responsive image using a static import](https://nextjs.org/docs/app/api-reference/components/image#responsive-image-using-a-static-import) and [Responsive image with aspect ratio](https://nextjs.org/docs/app/api-reference/components/image#responsive-image-with-aspect-ratio) sections are immersive because the code in the example and the demo match, The [Responsive image with fill](https://nextjs.org/docs/app/api-reference/components/image#responsive-image-with-fill) section breaks the immersion because the code in the example and the demo are slightly different. I think it's just a typo. It seems the width and height values are reversed. Attach the code from the demo. <img width="504" alt="Responsive image with fill demo code" src="https://github.com/vercel/next.js/assets/56260102/72ab314d-a9b3-4a88-8d9c-48f0dde8c19f"> Co-authored-by: Steven <steven@ceriously.com>
Author
Parents
Loading