Usage
The ColorModeImage component uses the <NuxtImg> component when @nuxt/image is installed, falling back to img otherwise.


<template>
<B24ColorModeImage
light="https://github.com/bitrix24.png"
dark="https://github.com/bitrix-tools.png"
:width="200"
:height="200"
/>
</template>
Switch between light and dark mode to see the different images: