Avatar

Represents a person or account with an image and a reliable fallback. Use it in profiles, comments, and participant lists.

React

Ready

Figma

React examples

Sizes and groups

+4
import {
  Avatar,
  AvatarBadge,
  AvatarFallback,
  AvatarGroup,
  AvatarGroupCount,
  Stack,
} from "@kela-systems/ui-components";

export default function AvatarSizes() {
  return (
    <Stack gap={5}>
      <Stack direction="row" gap={3} align="center">
        <Avatar size="xs">
          <AvatarFallback>NA</AvatarFallback>
        </Avatar>
        <Avatar size="sm">
          <AvatarFallback>NA</AvatarFallback>
        </Avatar>
        <Avatar>
          <AvatarFallback>NA</AvatarFallback>
          <AvatarBadge />
        </Avatar>
        <Avatar size="lg">
          <AvatarFallback>NA</AvatarFallback>
        </Avatar>
        <Avatar size="xl">
          <AvatarFallback>NA</AvatarFallback>
        </Avatar>
      </Stack>
      <AvatarGroup>
        <Avatar>
          <AvatarFallback>NA</AvatarFallback>
        </Avatar>
        <Avatar>
          <AvatarFallback>DL</AvatarFallback>
        </Avatar>
        <Avatar>
          <AvatarFallback>YS</AvatarFallback>
        </Avatar>
        <AvatarGroupCount>+4</AvatarGroupCount>
      </AvatarGroup>
    </Stack>
  );
}

Props

Avatar

NameDefaultDescription
size
"xs" | "sm" | "default" | "lg" | "xl"
"default"

It also takes the props of Base UI's avatar.

AvatarImage

No props of its own. It also takes the props of Base UI's avatar.

AvatarFallback

No props of its own. It also takes the props of Base UI's avatar.

AvatarGroup

No props of its own. It also takes the attributes of the HTML element it renders.

AvatarGroupCount

No props of its own. It also takes the attributes of the HTML element it renders.

AvatarBadge

NameDefaultDescription
variant
"default" | "icon"
"default"

It also takes the attributes of the HTML element it renders.

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.