Nuxt UI v3-alpha has been released!
<script setup lang="ts"> const light = 'https://picsum.photos/id/29/200' const dark = 'https://picsum.photos/id/46/200' </script> <template> <UColorModeImage :light="light" :dark="dark" /> </template>
"img"
ColorModeButton
A Button to switch between color mode.
ColorModeSelect
A Select to switch between color mode.
Resources