Skip to main content
  1. Docs
  2. Components
  3. Data display

Avatar

A person, or an organisation, application or tenant: their photo or logo, or their initials.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<span role="img">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Behaviour

Name
role="img", named by name; the initials are aria-hidden.
Beside a name
decorative hides it, so the name isn't read twice.
Photo
The image has alt="": the avatar's name already says who.
Initials
Centred on the capitals' height, in every engine.
Status
Read with the name, "Priya Sharma, Online"; the dot is aria-hidden. It sits on the bottom-end corner, the left one in right to left, and is drawn in CanvasText in forced colours.

02

Tested

On every change, before it ships.

  • axe, WCAG 2.2 A and AA, in Chromium on every pull request
  • Firefox and WebKit every night
  • Numbers and dates in English and Hindi, grouped for India
  • Forced colours and right to left
Next — AvatarChangelog