File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1
1
const Head = require ( 'next/head' ) ;
2
+ const Image = require ( 'next/image' ) ;
2
3
const Link = require ( 'next/link' ) ;
3
4
const Script = require ( 'next/script' ) ;
4
5
@@ -16,6 +17,53 @@ exports.head = {
16
17
attributes : { } ,
17
18
} ;
18
19
20
+ exports . image = {
21
+ render : Image ,
22
+ description : 'Renders a Next.js image tag' ,
23
+ // https://nextjs.org/docs/app/api-reference/components/image
24
+ attributes : {
25
+ src : {
26
+ type : String ,
27
+ required : true ,
28
+ } ,
29
+ alt : {
30
+ type : String ,
31
+ required : true ,
32
+ } ,
33
+ width : {
34
+ type : Number ,
35
+ required : true ,
36
+ } ,
37
+ height : {
38
+ type : Number ,
39
+ required : true ,
40
+ } ,
41
+ fill : {
42
+ type : Boolean ,
43
+ } ,
44
+ sizes : {
45
+ type : String ,
46
+ } ,
47
+ quality : {
48
+ type : Number ,
49
+ } ,
50
+ priority : {
51
+ type : Boolean ,
52
+ } ,
53
+ placeholder : {
54
+ type : String ,
55
+ matches : [ 'blur' , 'empty' ] ,
56
+ } ,
57
+ loading : {
58
+ type : String ,
59
+ matches : [ 'lazy' , 'eager' ] ,
60
+ } ,
61
+ blurDataURL : {
62
+ type : String ,
63
+ } ,
64
+ } ,
65
+ } ;
66
+
19
67
exports . link = {
20
68
render : Link ,
21
69
description : 'Displays a Next.js link' ,
You can’t perform that action at this time.
0 commit comments