The ColorModeImage component uses the <NuxtImg> component when @nuxt/image is installed, falling back to img otherwise.
<template>
<UColorModeImage
light="https://picsum.photos/id/29/400"
dark="https://picsum.photos/id/46/400"
:width="200"
:height="200"
/>
</template>
| Prop | Default | Type |
|---|---|---|
dark |
| |
light |
| |
src |
| |
alt |
| |
crossorigin |
| |
decoding |
| |
height | ||
loading |
| |
referrerpolicy |
| |
sizes |
| |
srcset |
| |
usemap |
| |
width |
|
5cb65 — feat: import @nuxt/ui-pro components