Balance Logo
Balance
Reckon Design System
Open playroom

Avatar

User avatars help to quickly identify people in the system, like users and employees. Entity avatars identify non-person entities, like companies.
Install
pnpm add @balance-web/avatar
Import usage
import {
AvatarStack,
UserAvatar,
EntityAvatar,
Instance
} from '@balance-web/avatar';
  • Code
  • API

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

User Avatar

Avatars are used to represent people such as employees and users.

Edit in Playroom

Color

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

Guest

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

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.

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.

Entity Avatar

Use the EntityAvatar to identify legal entities like companies.

Usage

The entity avatar is very much like the user avatar, though it's a rounded-square shape to distinguish it.

Type

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

Instance Avatar

Use the instance avatar to identify things, or groups of things, that are neither people nor legal entities. You might use an instance to highlight a payrun item or even a group of entities under a single icon.

Name

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

Icon

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

Color

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

Size

The instance component only supports three sizes.

Avatar Stack

Usage

Stack a group of related user avatars on top of one another.

Size

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

Overflow text

You may choose to hide the overflow text.

Copyright © 2024 Reckon. Designed and developed in partnership with Thinkmill.
Bitbucket logoJira software logoConfluence logo