Movatterモバイル変換


[0]ホーム

URL:


NuxtLabs is joining Vercel
Read the announcement

ColorModeAvatarPRO

AvatarGitHub
An Avatar with a different source for light and dark mode.

Usage

The ColorModeAvatar component extends theAvatar component, so you can pass any property such assize,icon, etc.

Use thelight anddark 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>
Switch between light and dark mode to see the different images:

API

Props

Prop Default Type
as

'span'

any

The element or component this component should render as.

light

string

dark

string

icon

string

size

'md'

"md" | "xs" | "sm" | "lg" | "xl" | "3xs" | "2xs" | "2xl" | "3xl"

alt

string

chip

boolean | ChipProps

text

string

ui

{ root?: ClassNameValue; image?: ClassNameValue; fallback?: ClassNameValue; icon?: ClassNameValue; }


[8]ページ先頭

©2009-2025 Movatter.jp