Skip to content

Avatar

An image element representing the user. This component contains a fallback state and a group state. The fallback state can be used to display the user’s initials when an image is not available. The group state can be used to display multiple avatars in a group.

API Documentation

Import

Terminal window
import { Avatar } from "@aeonkit/react";

Usage

With Image

Use the Avatar.Image component to display an image avatar.

With Initials

Use the Avatar.Fallback component to display the user’s initials when an image is not available.

BR

With Fallback Icon

Use the Avatar.Fallback component to display a fallback icon when an image is not available.

Group

You limit the number of avatars to be displayed in a group by using the maxLimit prop.

Props

API Interface: AvatarProps