The ColorModeAvatar component extends the Avatar component, so you can pass any property such as size, icon, etc.
Use the light and dark props to define the source for light and dark mode.
<template>
<UColorModeAvatar light="https://github.com/vuejs.png" dark="https://github.com/nuxt.png" />
</template>
| Prop | Default | Type |
|---|---|---|
as |
|
The element or component this component should render as. |
light |
| |
dark |
| |
alt |
| |
icon |
| |
text |
| |
size |
|
|
chip |
| |
ui |
|
5cb65 — feat: import @nuxt/ui-pro components