Avatar

Los avatares se pueden utilizar para representar personas u objetos. Soporta imágenes, iconos o letras.

Cuándo Usarlo

  • Utilizado para representar usuarios o cosas, admitiendo la visualización de imágenes, íconos o caracteres.

Básico

Hay tres tamaños y dos formas disponibles.

U
U
U
U
U

Tipo

Se admiten imágenes, iconos y letras. Los dos últimos pueden tener colores y colores de fondo personalizados.

Linus Torvalds
US
U

Con Insignia

Generalmente se utiliza para recordatorios de mensajes.

OU
OU
BU
AU

Grupo de Avatares

Visualización de grupo de avatares.

One
Two
Three
+2

API

Avatar

Propiedad
Descripción
Tipo
Por defecto

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

Propiedad
Descripción
Tipo
Por defecto

class

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