Nuxt/docs/3.api/1.components/10.nuxt-picture.md
Sébastien Chopin f26a801775
docs: update to new website (#23743)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-18 12:59:43 +02:00

915 B

title description links
<NuxtPicture> Nuxt provides a <NuxtPicture> component to handle automatic image optimization.
label icon to size
Source i-simple-icons-github https://github.com/nuxt/image/blob/main/src/runtime/components/nuxt-picture.ts xs

<NuxtPicture> is a drop-in replacement for the native <picture> tag.

Usage of <NuxtPicture> is almost identical to <NuxtImg> but it also allows serving modern formats like webp when possible.

Learn more about the <picture> tag on MDN.

Setup

In order to use <NuxtPicture> you should install and enable the Nuxt Image module:

npx nuxi@latest module add image

::read-more{to="https://image.nuxt.com/usage/nuxt-picture" target="_blank"} Read more about the <NuxtPicture> component. ::