En construcciónNumori se está construyendo en abierto. Todavía no hay nada en venta y la mayoría de las aplicaciones están sin terminar.Ver qué está listo

UiAvatar

A circular avatar with an icon fallback.

Contenido

Shows an image, or a fallback icon when there is none, in five sizes with two colours and an optional ring.

Ejemplos

Sizes and fallback

Five sizes from xs to xl. With no src the fallback icon shows; add a ring for emphasis or a gray theme. Pass src for a photo.

<div class="flex flex-wrap items-center gap-3">
  <UiAvatar size="xs" />
  <UiAvatar size="sm" />
  <UiAvatar size="md" />
  <UiAvatar size="lg" ring />
  <UiAvatar size="xl" color="gray" fallback-icon="mdi:robot-outline" />
</div>

Props

NombreTipoPor defectoDescripción
srcstring''Image URL.
altstring'Avatar'Alt text for the image.
sizestring'md'Avatar size. xssmmdlgxl
fallbackIconstring'mdi:account'Icon shown when there is no image.
colorstring'primary'Fallback background colour. primarygray
ringbooleanfalseAdd a ring around the avatar.