Avatar - Keep React

The Avatar component in the Keep React allows you to display user avatars or profile images in a consistent and visually appealing manner. With customizable options for placeholders, shapes, status icons, and sizes, you can create versatile avatars to suit your design needs.

Table of Contents#

Default Avatar#

When you enable the placeholder option, a default avatar image appears when there's no user image available.

Avatar Shapes#

Choose between two avatar shapes: rounded and circle. Utilize the shape prop with values "circle" or "rounded".

Avatar Sizes#

There are various avatar sizes to fit your design. To change the size, use the size prop with values: "sm", "md", "lg", "xl", or "2xl".

Using User Images#

Display a user's image using the img prop. Provide the path to the user's image, whether it's a local or remote URL.

avatar
avatar

Avatar Status#

The avatar's status reflects the user's availability. Show the user's status using the "active" prop, and use the "verified" prop to indicate a verified status.

Avatar Group#

Display multiple avatars in a group setting. Customize the layout for visually appealing designs.

avatar
avatar
avatar
avatar
+9

API Reference#

For detailed information about all the props and options, refer to the API section below.

PropertyDescriptionTypeDefault
altAlternative text for the avatar image.stringavatar
imgPath to the user's imagestring/avatar.png
sizeSpecifies the size of the avatar
sm
md
lg
xl
2xl
md
colorSpecifies the color of the avatar
primary
secondary
success
warning
error
secondary
shapeThe shape of the avatar.
circle
rounded
circle
statusReflects the user's availability status.booleanfalse
classNameInjects the class name in avatarstringNone