Skip to main content

Image

A picture of the person in six sizes: 24, 28 (compact), 32, 40, 48 and 64 px. Always set width and height so the page does not jump while the image loads, and give a standalone avatar an alt with the name. If the name is written next to it, use alt="".

Alex Morgan Riley Quinn Sam Rivera Jordan Lee Taylor Kim Casey Brown

Initials

Initials in the same soft colours as the badges. Use them when there is no picture. The initials are not read as letters: role="img" with an aria-label gives the full name.

AM SR JL TK CB DP

Icon placeholder

An icon when there is no name either, such as an invited person or an unnamed team. Add strong for a darker icon.

Shapes

Round for people and rounded squares for teams, companies or products. The shape is only rounded-full or rounded-lg.

Alex Morgan Sam Rivera JL TK

Status

A dot at the corner shows presence. A dot alone is only colour, so the status is also written as text: here under the avatar, and in your own page it can be sr-only text inside the dot. The ring around the dot has the colour of the card.

Online Online
Away Away
Busy Busy
Offline Offline

Group

Avatars that overlap with -space-x-3. Each one has a ring in the card colour so the edges stay clear, and the counter explains itself with an aria-label. The group is named with role="group".

Alex Morgan Sam Rivera Jordan Lee Taylor Kim +3

With text

An avatar with a name and a second line, and a compact version with a badge. The text names the person, so the avatar is decorative. Use min-w-0 and truncate so a long name never pushes the layout.

Alex Morgan

alex@example.com

Sam Rivera

Active