Avatar - National Design System

Avatars represent users or entities with initials, icons, or images in various sizes and shapes

Initials

Display user initials as a text-based avatar

AB

Icon

Use an icon as the avatar content for generic user placeholders

Image

Display a user photo with optional image border

User Avatar

Dropmenu Trigger

Avatar as a dropmenu trigger for user menus and profile actions

Group

Stack multiple avatars together with overlapping or spaced layouts

User 1
User 2
User 3
User 4
User 5
+99

Built-in Features

Pure CSS

No JavaScript required. Renders immediately from HTML markup.

Seven Sizes

From 24px (XS) to 120px (3XL). Font and icon scale proportionally.

Element Agnostic

Works on div, a, or button elements for display, navigation, or actions.

Group Layout

Stack avatars with overlapping or spaced arrangement and overflow count.

Usage Guidelines

When to Use

  • Use initials when no profile image is available. Two letters from the user's name
  • Use icon avatars for anonymous or system-level users where no identity is needed
  • Use image avatars when a real photo is available. Always include alt text
  • Use groups to show participants, collaborators, or team members in a compact space
  • Choose the size based on context: XS/SM for inline mentions, MD/LG for cards, XL+ for profile headers
Was this page useful?
60% of users said Yes from 2843 Feedbacks