Avatar

아바타는 사람이나 사물을 나타내는 데 사용할 수 있습니다. 이미지, 아이콘 또는 문자를 지원합니다.

사용 시기

  • 사용자 또는 사물을 나타내는 데 사용되며 이미지, 아이콘 또는 문자의 표시를 지원합니다.

기본

세 가지 크기와 두 가지 모양을 사용할 수 있습니다.

U
U
U
U
U

유형

이미지, 아이콘 및 문자가 지원되며, 후자의 두 가지 아바타는 사용자 정의 색상 및 배경색을 가질 수 있습니다.

Linus Torvalds
US
U

배지 포함

일반적으로 메시지 알림에 사용됩니다.

OU
OU
BU
AU

아바타 그룹

아바타 그룹 표시.

One
Two
Three
+2

API

Avatar

속성
설명
타입
기본값

src

The image source URL for the avatar. string -

alt

Alternative text for the image, also used to generate initials and colors if src is missing. string ""

fallback

Explicit text to use for initials and background color generation if src is missing. string -

size

The size of the avatar. "sm" | "md" | "lg" | "xl" "md"

shape

The shape of the avatar. "circle" | "square" | "rounded" "circle"

status

Adds a preset status badge indicating user availability. "online" | "offline" | "busy" | "away" -

class

Additional CSS classes for custom styling. string -

AvatarGroup

속성
설명
타입
기본값

class

Additional CSS classes to apply to the avatar group container. string -