Avatar

An avatar is a small picture, set of initials, or icon that stands for a person or an account

Overview

The avatar family is made of four components:

  • Avatar: the picture, initials, or icon itself.

  • Avatar online badge: a small dot on the avatar that shows if someone is online or offline.

  • Avatar company badge: a small company logo on the avatar.

  • Avatar label group: an avatar with a name and supporting text next to it.

The badges can't be used on their own. They always sit inside an avatar.

The avatar has 6 sizes (24, 32, 40, 48, 56, 64), 3 types (image, initials, icon), 3 badge options (none, online, company), and 3 states (default, hover, focus). That makes 162 variants in total. Every combination works at every size.

Anatomy

  1. Content: an image, initials, or an icon.

  2. Badge (optional): an online badge or a company badge in the corner.

  3. Label: the main text, like a name.

  4. Supporting text (optional): a second line, like an email or a role.

Props

Prop

Values

Notes

size

24, 32, 40, 48, 56, 64


type

image, initials, icon


badge

none, online, company

Only one badge at a time.

image

image

Type image only.

initials

string

Type initials only.

status

online, offline

Badge online only.

logo

image

Badge company only.

onClick

function

Optional.

Do and Don't

Do

Use the same avatar size for people in the same list to maintain visual rhythm and alignment.

Dont

Avoid inconsistent sizing that makes rows feel uneven and harder to scan.

Do

Show the first letter of up to two words in uppercase when a person's name is available.

Dont

Don't discard useful identity information. Initials are more specific when the person's name is known.

Do

A generic person icon is a suitable fallback when there is no identity information to display.

Dont

Don't invent initials when there is no name to derive them from.


Types

Image

A photo or picture of the person or account.

  • When to use: when you have a picture.

  • When not to use: when there is no picture. The avatar falls back to initials.

Initials

The first letters of the name, in uppercase.

  • When to use: when there is a name but no picture, or when the picture can't load.

  • When not to use: when there is no name. Use the icon.

Icon

A general person icon.

  • When to use: when there is no picture and no name.

  • When not to use: when you have a name. Initials are more helpful.

States

Hover and focus only apply to a clickable avatar. A static avatar is always in the default state.

Default

The avatar is shown as it is.

Hover

The pointer is over a clickable avatar. A light overlay appears on it.

Focus

A ring appears around a clickable avatar when someone reaches it with a keyboard.


Rules and behaviors

Content

  • The avatar shows the image first. If the image fails to load or doesn't exist, it shows initials. If there is no name, it shows the icon.

  • Initials are the first letter of up to two words, in uppercase.

Badges

  • Only one badge at a time: none, online, or company.

  • Badges are used only inside an avatar. Never place one on its own.

Clickable avatar

  • When the avatar has an action, it is a button. Otherwise it is static and always in the default state.

  • Focus shows a ring around the avatar. Hover shows a light overlay.

  • A clickable avatar needs an accessibility label, like Account.

Label group

  • The label and the supporting text each stay on one line. Longer text is cut off with an ellipsis.

  • The avatar inside uses the avatar size that matches the label group size.

Best practice

  • Keep the badge small and simple. If people can't tell what it means, it doesn't help.

  • Use a label group when people need to know who the avatar is, not only what it looks like.

  • Keep names and supporting text short, since they are cut off after one line.

Accessibility

  • A clickable avatar needs an accessibility label, like Account.

  • The online status needs a text description, like Online or Offline. Don't rely on the color of the dot.

  • The company name needs a text description.

  • Focus is shown with a ring, so keyboard users can see where they are.

No headings found on page

Want to work together?

syahrulmiftahfarid@gmail.com

© 2026 Syahrul Miftah Farid

Want to work together?

syahrulmiftahfarid@gmail.com

© 2026 Syahrul Miftah Farid

Create a free website with Framer, the website builder loved by startups, designers and agencies.