BalanceReckon Design System
Feedback & indicators

Avatar

Avatars are used to show a thumbnail representation of an individual or business in the interface.

import { AvatarStack, UserAvatar, EntityAvatar, Instance } from '@balance-web/avatar';
Loading demo…

User Avatar

Loading demo…

Color

The color of an avatar is automatically generated from the name provided.

Loading demo…

Guest

Use the guest prop to indicate an avatar is less significant, for example a guest user.

Loading demo…

Inactive

Note: This was previously the disabled prop which has been deprecated.

Use inactive prop to indicate that an avatar is somehow unavailable, for example an employee's details are incomplete; indicating that they're not eligible to be included in a pay run.

Loading demo…

Size

Use the size property to set the width and height of an avatar. The initials will size automatically.

NOTE: that the size xsmall will only display a single character for the initials.

Loading demo…

If none of the sizing tokens fit, size also accepts a CustomSizeType — an explicit { width, height, fontSize, borderRadius? } object — for the rare case a design calls for dimensions the scale has no token for.

Entity Avatar

Usage

Loading demo…

Type

Entities may be of two different types. The defining characteristic is the initials character limit.

Loading demo…

Instance Avatar

Name

Providing a name will render the first letter and automatically select a colour from the theme.

Loading demo…

Icon

The icon property will accept any icon from the icon package.

Loading demo…

Color

Unlike the other avatar variants, the instance component will accept an explicit color property.

Loading demo…

Size

The instance component only supports three sizes.

Loading demo…

Avatar Stack

Usage

Loading demo…

Size

The size provided to the avatar stack will influence the avatars, overflow text, and the gap between each avatar.

Loading demo…

Overflow text

You may choose to hide the overflow text.

Loading demo…

On this page