-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"src":{ | ||
"description":"Path to image file" | ||
}, | ||
"width":{ | ||
"description":"Specify width of the image." | ||
}, | ||
"height":{ | ||
"description":"Specify height of the image." | ||
}, | ||
"sizes":{ | ||
"description":"Specify responsive reiszes. `sm:100vw md:50vw lg:400px`" | ||
}, | ||
"provider":{ | ||
"description":"Use other provider instead of default provider option specified in nuxt.config`" | ||
}, | ||
"preset":{ | ||
"description":"Presets are predefined sets of image modifiers that can be used create unified form of images in your projects." | ||
}, | ||
"format":{ | ||
"description":"In case you want to serve images in a specific format, use this prop. `webp`, `jpeg`, `jpg`, `png`, `gif` and `svg`" | ||
}, | ||
"quality":{ | ||
"description":"The quality for the generated image(s)." | ||
}, | ||
"fit":{ | ||
"description":"The fit property specifies the size of the images. There are five standard values you can use with this property. `cover` `contain` `fill` `inside` `outside`" | ||
}, | ||
"modifiers":{ | ||
"description":"In addition to standard modifiers, every provider can have their own modifiers. `:modifiers=\"{ roundCorner: '0:100' }\"`" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"nuxt-picture":{ | ||
"attributes":[ | ||
"src", | ||
"width", | ||
"height", | ||
"sizes", | ||
"provider", | ||
"preset", | ||
"format", | ||
"quality", | ||
"fit", | ||
"modifiers" | ||
], | ||
"description":"drop-in replacement for the native `<picture>` tag" | ||
}, | ||
"nuxt-img":{ | ||
"attributes":[ | ||
"src", | ||
"width", | ||
"height", | ||
"sizes", | ||
"provider", | ||
"preset", | ||
"format", | ||
"quality", | ||
"fit", | ||
"modifiers" | ||
], | ||
"description":"drop-in replacement for the native `<img>` tag" | ||
} | ||
} |