Skip to content

CircleAvatar

A circle that represents a user.

Typically used with a user's profile image, or, in the absence of such an image, the user's initials.

Usage

A
Default Avatar with Text
Image Avatar (Radius 30)
XL
Colored Avatar

Code Example

vue
<template>
  <Row :gap="20">
    <CircleAvatar backgroundImage="https://example.com/avatar.jpg" />

    <CircleAvatar backgroundColor="blue" foregroundColor="white">
      <Text>AB</Text>
    </CircleAvatar>
  </Row>
</template>

Props

PropTypeDefaultDescription
backgroundImagestring-The background image of the circle.
backgroundColorstring | ColorColors.grey[400]The background color.
foregroundColorstring | ColorColors.whiteThe default text color for children.
radiusnumber20The size of the avatar (half the diameter).
minRadiusnumber-The minimum size of the avatar.
maxRadiusnumber-The maximum size of the avatar.

Slots

NameDescription
defaultThe child widget (usually text or icon).