-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update next/image docs and examples #26150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
/> | ||
<ViewSource pathname="pages/placeholder.js" /> | ||
<h1>Image Component With Placeholder</h1> | ||
<Image alt="Mountains" src={mountains} placeholder="blur" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure this is intentional--this changes the behavior of the page since the image is intrinsically larger than 700x475. It might be worth leaving an example that shows that you can override the intrinsic size of a statically-imported image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! I removed the layout=responsive
so that the width
and height
will take affect
This updates the `next/image` docs and examples to add missing information.
This updates the
next/image
docs and examples to add missing information.