e2f16f96c2
This PR updates the docs for the following code change: - #41399 There are a few updates here: - [x] Update docs - [x] Update links to docs inside component - [x] Update examples - [x] Fix corner cases in codemod
19 lines
446 B
TypeScript
19 lines
446 B
TypeScript
import Image from 'next/legacy/image'
|
|
import ViewSource from '../components/view-source'
|
|
import mountains from '../public/mountains.jpg'
|
|
|
|
const Responsive = () => (
|
|
<div>
|
|
<ViewSource pathname="pages/layout-responsive.tsx" />
|
|
<h1>Image Component With Layout Responsive</h1>
|
|
<Image
|
|
alt="Mountains"
|
|
src={mountains}
|
|
layout="responsive"
|
|
width={700}
|
|
height={475}
|
|
/>
|
|
</div>
|
|
)
|
|
|
|
export default Responsive
|