Skip to content

Avatar

An image element with a fallback for representing the user.

Basic Usage

RVCN
Example

Sizes

Use the size prop to control the size of the avatar.

XSSMMDLGXL2XL
Example

Shapes

Use the shape prop to control the shape of the avatar.

CIROSQ
Example

Avatar Group

Use the BrAvatarGroup component to stack avatars together.

U1U2U3
+2
U1U2U3U4
+6
Example

Avatar Badge

Use the BrAvatarBadge component to display a status badge.

RVCNABXY
Example

API

BrAvatar

Props

NameTypeDefaultDescription
sizestring'md'Size variants: xs, sm, md, lg, xl, 2xl
shapestring'circle'Shape variants: circle, square, rounded
borderedbooleanfalseWhether to show a border around the avatar

BrAvatarImage

Props

NameTypeDescription
srcstringThe source of the image
altstringThe alt text of the image

BrAvatarFallback

Props

NameTypeDescription
delayMsnumberThe delay in milliseconds before the fallback is shown

BrAvatarGroup

Props

NameTypeDefaultDescription
maxnumber-The maximum number of avatars to show
sizestring'md'Size of the avatars in the group
shapestring'circle'Shape of the avatars in the group
borderedbooleantrueWhether to show a border around the avatars

BrAvatarBadge

Props

NameTypeDefaultDescription
statusstring'online'Status of the avatar: online, offline, busy, away
positionstring'bottom-right'Position of the badge: top-right, bottom-right, top-left, bottom-left