/
valid.tsx
42 lines (40 loc) · 925 Bytes
/
valid.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<p>Hello World</p>
<Image
id="width-and-height-num"
src="https://via.placeholder.com/500"
width={500}
height={500}
></Image>
<Image
id="width-and-height-str"
src="https://via.placeholder.com/500"
width="500"
height="500"
></Image>
<Image
id="unsized-image"
src="https://via.placeholder.com/100"
unsized
></Image>
<Image
id="quality-num"
src="https://via.placeholder.com/500"
quality={80}
unsized
></Image>
<Image
id="quality-str"
src="https://via.placeholder.com/500"
quality="80"
unsized
></Image>
<p id="stubtext">This is valid usage of the Image component</p>
</div>
)
}
export default Page