O componente ColorModeAvatar estende o componente Avatar, então você pode passar qualquer propriedade como size, icon, etc.
Use as props light e dark para definir a origem para os modos claro e escuro.
<template>
<NColorModeAvatar light="https://github.com/vuejs.png" dark="https://github.com/nuxt.png" />
</template>
| Prop | Default | Type |
|---|---|---|
as | 'span' | anyThe element or component this component should render as. |
light | string | |
dark | string | |
color | 'neutral' | "primary" | "secondary" | "accent" | "success" | "info" | "warning" | "error" | "neutral" |
alt | string | |
crossorigin | "" | "anonymous" | "use-credentials" | |
decoding | "async" | "auto" | "sync" | |
height | string | number | |
loading | "lazy" | "eager" | |
referrerpolicy | "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url" | |
sizes | string | |
srcset | string | |
usemap | string | |
width | string | number | |
icon | any | |
text | string | |
size | 'md' | "md" | "3xs" | "2xs" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" |
chip | boolean | ChipProps | |
ui | { root?: SlotClass; image?: SlotClass; fallback?: SlotClass; icon?: SlotClass; } |