[{"data":1,"prerenderedAt":561},["ShallowReactive",2],{"navigation":3,"/usage/nuxt-picture":180,"/usage/nuxt-picture-surround":556},[4,26,43,167],{"title":5,"path":6,"stem":7,"children":8,"page":25},"Get Started","/get-started","1.get-started",[9,13,17,21],{"title":10,"path":11,"stem":12},"Installation","/get-started/installation","1.get-started/1.installation",{"title":14,"path":15,"stem":16},"Configuration","/get-started/configuration","1.get-started/2.configuration",{"title":18,"path":19,"stem":20},"Providers","/get-started/providers","1.get-started/3.providers",{"title":22,"path":23,"stem":24},"Contributing","/get-started/contributing","1.get-started/4.contributing",false,{"title":27,"path":28,"stem":29,"children":30,"page":25},"Usage","/usage","2.usage",[31,35,39],{"title":32,"path":33,"stem":34},"\u003CNuxtImg>","/usage/nuxt-img","2.usage/1.nuxt-img",{"title":36,"path":37,"stem":38},"\u003CNuxtPicture>","/usage/nuxt-picture","2.usage/2.nuxt-picture",{"title":40,"path":41,"stem":42},"useImage()","/usage/use-image","2.usage/3.use-image",{"title":18,"path":44,"stem":45,"children":46,"page":25},"/providers","3.providers",[47,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163],{"title":48,"path":49,"stem":50},"Aliyun","/providers/aliyun","3.providers/aliyun",{"title":52,"path":53,"stem":54},"AWS Amplify","/providers/aws-amplify","3.providers/aws-amplify",{"title":56,"path":57,"stem":58},"Bunny","/providers/bunny","3.providers/bunny",{"title":60,"path":61,"stem":62},"Caisy","/providers/caisy","3.providers/caisy",{"title":64,"path":65,"stem":66},"Cloudflare","/providers/cloudflare","3.providers/cloudflare",{"title":68,"path":69,"stem":70},"Cloudimage","/providers/cloudimage","3.providers/cloudimage",{"title":72,"path":73,"stem":74},"Cloudinary","/providers/cloudinary","3.providers/cloudinary",{"title":76,"path":77,"stem":78},"Contentful","/providers/contentful","3.providers/contentful",{"title":80,"path":81,"stem":82},"Directus","/providers/directus","3.providers/directus",{"title":84,"path":85,"stem":86},"Fastly","/providers/fastly","3.providers/fastly",{"title":88,"path":89,"stem":90},"Filerobot","/providers/filerobot","3.providers/filerobot",{"title":92,"path":93,"stem":94},"Glide","/providers/glide","3.providers/glide",{"title":96,"path":97,"stem":98},"Gumlet","/providers/gumlet","3.providers/gumlet",{"title":100,"path":101,"stem":102},"Hygraph","/providers/hygraph","3.providers/hygraph",{"title":104,"path":105,"stem":106},"ImageEngine","/providers/imageengine","3.providers/imageengine",{"title":108,"path":109,"stem":110},"ImageKit","/providers/imagekit","3.providers/imagekit",{"title":112,"path":113,"stem":114},"Imgix","/providers/imgix","3.providers/imgix",{"title":116,"path":117,"stem":118},"IPX","/providers/ipx","3.providers/ipx",{"title":120,"path":121,"stem":122},"Netlify","/providers/netlify","3.providers/netlify",{"title":124,"path":125,"stem":126},"Prepr","/providers/prepr","3.providers/prepr",{"title":128,"path":129,"stem":130},"Prismic","/providers/prismic","3.providers/prismic",{"title":132,"path":133,"stem":134},"Sanity","/providers/sanity","3.providers/sanity",{"title":136,"path":137,"stem":138},"Sirv","/providers/sirv","3.providers/sirv",{"title":140,"path":141,"stem":142},"Storyblok","/providers/storyblok","3.providers/storyblok",{"title":144,"path":145,"stem":146},"Strapi","/providers/strapi","3.providers/strapi",{"title":148,"path":149,"stem":150},"Twicpics","/providers/twicpics","3.providers/twicpics",{"title":152,"path":153,"stem":154},"Unsplash","/providers/unsplash","3.providers/unsplash",{"title":156,"path":157,"stem":158},"Uploadcare","/providers/uploadcare","3.providers/uploadcare",{"title":160,"path":161,"stem":162},"Vercel","/providers/vercel","3.providers/vercel",{"title":164,"path":165,"stem":166},"Weserv","/providers/weserv","3.providers/weserv",{"title":168,"path":169,"stem":170,"children":171,"page":25},"Advanced","/advanced","4.advanced",[172,176],{"title":173,"path":174,"stem":175},"Custom Provider","/advanced/custom-provider","4.advanced/1.custom-provider",{"title":177,"path":178,"stem":179},"Static Images","/advanced/static-images","4.advanced/2.static-images",{"id":181,"title":36,"body":182,"description":544,"extension":545,"links":546,"meta":552,"navigation":553,"path":37,"seo":554,"stem":38,"__hash__":555},"docs/2.usage/2.nuxt-picture.md",{"type":183,"value":184,"toc":537},"minimark",[185,196,213,225,247,252,263,269,272,336,358,364,367,389,395,402,408,533],[186,187,188,191,192,195],"p",{},[189,190,36],"code",{}," is a drop-in replacement for the native ",[189,193,194],{},"\u003Cpicture>"," tag.",[186,197,198,199,201,202,208,209,212],{},"Usage of ",[189,200,36],{}," is almost identical to ",[203,204,206],"a",{"href":205},"nuxt-img",[189,207,32],{}," but also allows serving modern formats like ",[189,210,211],{},"webp"," when possible.",[186,214,215,216,224],{},"Learn more about the ",[203,217,221,223],{"href":218,"rel":219},"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture",[220],"nofollow",[189,222,194],{}," tag on MDN",".",[226,227,228],"warning",{},[186,229,230,231,237,238,240,241,246],{},"Unlike the native ",[203,232,234,236],{"href":218,"rel":233},[220],[189,235,194],{}," element",", ",[189,239,36],{}," currently doesn't support using multiple image sources. See ",[203,242,245],{"href":243,"rel":244},"https://github.com/nuxt/image/issues/309",[220],"#309"," for more info.",[248,249,251],"h2",{"id":250},"props","Props",[253,254,255],"tip",{},[186,256,257,258],{},"See props supported by ",[203,259,261],{"href":260},"/usage/nuxt-img#props",[189,262,32],{},[264,265,267],"h3",{"id":266},"format",[189,268,266],{},[186,270,271],{},"Format on pictures can be used to serve images in multiple formats. A legacy format will be generated automatically. So in the example below avif, webp and png would be generated. They will be added in the same order they are added to the format attribute.",[273,274,279],"pre",{"className":275,"code":276,"language":277,"meta":278,"style":278},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003CNuxtPicture\n  format=\"avif,webp\"\n  src=\"/nuxt-icon.png\"\n/>\n","vue","",[189,280,281,294,314,329],{"__ignoreMap":278},[282,283,286,290],"span",{"class":284,"line":285},"line",1,[282,287,289],{"class":288},"sMK4o","\u003C",[282,291,293],{"class":292},"swJcz","NuxtPicture\n",[282,295,297,301,304,307,311],{"class":284,"line":296},2,[282,298,300],{"class":299},"spNyl","  format",[282,302,303],{"class":288},"=",[282,305,306],{"class":288},"\"",[282,308,310],{"class":309},"sfazB","avif,webp",[282,312,313],{"class":288},"\"\n",[282,315,317,320,322,324,327],{"class":284,"line":316},3,[282,318,319],{"class":299},"  src",[282,321,303],{"class":288},[282,323,306],{"class":288},[282,325,326],{"class":309},"/nuxt-icon.png",[282,328,313],{"class":288},[282,330,332],{"class":284,"line":331},4,[282,333,335],{"class":334},"sTEyZ","/>\n",[186,337,338,339,237,341,237,344,237,347,237,350,353,354,357],{},"Available formats are ",[189,340,211],{},[189,342,343],{},"avif",[189,345,346],{},"jpeg",[189,348,349],{},"jpg",[189,351,352],{},"png",", and ",[189,355,356],{},"gif",". If the format is not specified, it will respect the default image format.",[264,359,361],{"id":360},"legacyformat",[189,362,363],{},"legacyFormat",[186,365,366],{},"Format used for fallback. Default is conditional:",[368,369,370,384],"ul",{},[371,372,373,374,237,376,353,378,380,381,383],"li",{},"If original format supports transparency (",[189,375,352],{},[189,377,211],{},[189,379,356],{},"), ",[189,382,352],{}," is used for fallback",[371,385,386,387,383],{},"Otherwise ",[189,388,346],{},[264,390,392],{"id":391},"imgattrs",[189,393,394],{},"imgAttrs",[186,396,397,398,401],{},"Allows you to set additional HTML-attributes on the ",[189,399,400],{},"img"," element.",[186,403,404],{},[405,406,407],"strong",{},"Example:",[273,409,411],{"className":275,"code":410,"language":277,"meta":278,"style":278},"\u003CNuxtPicture\n  src=\"/nuxt-icon.png\"\n  :imgAttrs=\"{\n    id: 'my-id',\n    class: 'my-class',\n    style: 'display: block',\n    'data-my-data': 'my-value'\n  }\"\n/>\n",[189,412,413,419,431,445,465,482,499,520,528],{"__ignoreMap":278},[282,414,415,417],{"class":284,"line":285},[282,416,289],{"class":288},[282,418,293],{"class":292},[282,420,421,423,425,427,429],{"class":284,"line":296},[282,422,319],{"class":299},[282,424,303],{"class":288},[282,426,306],{"class":288},[282,428,326],{"class":309},[282,430,313],{"class":288},[282,432,433,436,438,440,442],{"class":284,"line":316},[282,434,435],{"class":288},"  :",[282,437,394],{"class":299},[282,439,303],{"class":288},[282,441,306],{"class":288},[282,443,444],{"class":288},"{\n",[282,446,447,450,453,456,459,462],{"class":284,"line":331},[282,448,449],{"class":292},"    id",[282,451,452],{"class":288},":",[282,454,455],{"class":288}," '",[282,457,458],{"class":309},"my-id",[282,460,461],{"class":288},"'",[282,463,464],{"class":288},",\n",[282,466,468,471,473,475,478,480],{"class":284,"line":467},5,[282,469,470],{"class":292},"    class",[282,472,452],{"class":288},[282,474,455],{"class":288},[282,476,477],{"class":309},"my-class",[282,479,461],{"class":288},[282,481,464],{"class":288},[282,483,485,488,490,492,495,497],{"class":284,"line":484},6,[282,486,487],{"class":292},"    style",[282,489,452],{"class":288},[282,491,455],{"class":288},[282,493,494],{"class":309},"display: block",[282,496,461],{"class":288},[282,498,464],{"class":288},[282,500,502,505,508,510,512,514,517],{"class":284,"line":501},7,[282,503,504],{"class":288},"    '",[282,506,507],{"class":292},"data-my-data",[282,509,461],{"class":288},[282,511,452],{"class":288},[282,513,455],{"class":288},[282,515,516],{"class":309},"my-value",[282,518,519],{"class":288},"'\n",[282,521,523,526],{"class":284,"line":522},8,[282,524,525],{"class":288},"  }",[282,527,313],{"class":288},[282,529,531],{"class":284,"line":530},9,[282,532,335],{"class":334},[534,535,536],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":278,"searchDepth":296,"depth":296,"links":538},[539],{"id":250,"depth":296,"text":251,"children":540},[541,542,543],{"id":266,"depth":316,"text":266},{"id":360,"depth":316,"text":363},{"id":391,"depth":316,"text":394},"Discover how to use and configure the Nuxt Picture component.","md",[547],{"label":548,"icon":549,"to":550,"size":551},"Source","i-simple-icons-github","https://github.com/nuxt/image/blob/main/src/runtime/components/nuxt-picture.ts","xs",{},true,{"title":36,"description":544},"gcAdunFYCfqTo1dBZmdFITecyBvVys-NAoe5BUR6HaE",[557,559],{"title":32,"path":33,"stem":34,"description":558,"children":-1},"Discover how to use and configure the Nuxt Image component.",{"title":40,"path":41,"stem":42,"description":560,"children":-1},"A Vue composable that returns a helper function to generate optimized image URLs.",1750079219704]