Skip to content

Commit ceb4ad8

Browse files
committed
docs: mention avif format support
1 parent 2720956 commit ceb4ad8

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

docs/content/en/2.components/1.nuxt-img.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ In case you want to serve images in a specific format, use this prop.
140140
<nuxt-img format="webp" src="/nuxt-icon.png" ... />
141141
```
142142

143-
Available formats are `webp`, `jpeg`, `jpg`, `png`, `gif` and `svg`. If the format is not specified, it will respect the default image format.
143+
Available formats are `webp`, `avif`, `jpeg`, `jpg`, `png`, `gif` and `svg`. If the format is not specified, it will respect the default image format.
144144

145145
### `quality`
146146

@@ -205,4 +205,4 @@ Set `loading="lazy"` to defer loading of an image until it appears in the viewpo
205205

206206
```html
207207
<nuxt-img src="/nuxt-icon.png" loading="lazy" />
208-
```
208+
```

vetur/attributes.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
{
2-
"src":{
3-
"description":"Path to image file"
2+
"src": {
3+
"description": "Path to image file"
44
},
5-
"width":{
6-
"description":"Specify width of the image."
5+
"width": {
6+
"description": "Specify width of the image."
77
},
8-
"height":{
9-
"description":"Specify height of the image."
8+
"height": {
9+
"description": "Specify height of the image."
1010
},
11-
"sizes":{
12-
"description":"Specify responsive reiszes. `sm:100vw md:50vw lg:400px`"
11+
"sizes": {
12+
"description": "Specify responsive reiszes. `sm:100vw md:50vw lg:400px`"
1313
},
14-
"provider":{
15-
"description":"Use other provider instead of default provider option specified in nuxt.config`"
14+
"provider": {
15+
"description": "Use other provider instead of default provider option specified in nuxt.config`"
1616
},
17-
"preset":{
18-
"description":"Presets are predefined sets of image modifiers that can be used create unified form of images in your projects."
17+
"preset": {
18+
"description": "Presets are predefined sets of image modifiers that can be used create unified form of images in your projects."
1919
},
20-
"format":{
21-
"description":"In case you want to serve images in a specific format, use this prop. `webp`, `jpeg`, `jpg`, `png`, `gif` and `svg`"
20+
"format": {
21+
"description": "In case you want to serve images in a specific format, use this prop. `webp`, `avif`, `jpeg`, `jpg`, `png`, `gif` and `svg`"
2222
},
23-
"quality":{
24-
"description":"The quality for the generated image(s)."
23+
"quality": {
24+
"description": "The quality for the generated image(s)."
2525
},
26-
"fit":{
27-
"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`"
26+
"fit": {
27+
"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`"
2828
},
29-
"modifiers":{
30-
"description":"In addition to standard modifiers, every provider can have their own modifiers. `:modifiers=\"{ roundCorner: '0:100' }\"`"
29+
"modifiers": {
30+
"description": "In addition to standard modifiers, every provider can have their own modifiers. `:modifiers=\"{ roundCorner: '0:100' }\"`"
3131
}
3232
}

0 commit comments

Comments
 (0)