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 docs for next/future/image
migration guide
#39309
Conversation
next/future/image
migration guide
I'm not sure this would be the issue of how they're displayed on mobile, though. Should we try removing the table instead? |
I would suggest doing it like this: Responsive// next/image: <ImageLegacy src={src} layout="responsive" />
// next/image/future: Use `sizes` and `style` for the same behavior
<ImageFuture
src={src}
sizes="100vw"
style={{ width: '100%', height: 'auto' }}
/> |
@leerob are you suggesting using comments so the legacy code isn’t highlighted? |
Correct - my thought is you're going here because you want to copy-paste the new version, so the code comment gives you the only one to reference. |
Closing in favor of #39421 |
Follow up to #39270 to make the props collapse to newlines