Edit page

Avatar

Avatars can take an image or a short string in order to display a tidy, circular element that can be used in your UI. Avatars are commonly seen in user profiles.

Import Syntax

Basic Usage

A
CL
JP

With Image

With Icon

Props

PropertyTypeRequiredDefaultDescription
sizeNumberfalse40Diameter of the Avatar.
childrenNodefalse-The content of the component; can take text, an image, or an icon.
srcStringfalse-The src attribute for the img element.
altStringfalse-Used in combination with src to provide an alt attribute for the rendered img element.