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

Playground

Every prop, live, and the code it takes.

Size
Shape
Status
member.tsx
import { Avatar } from "@qeetrix/react";

<Avatar name="Priya Sharma" size="lg" />

02

Initials

name: the text alternative, and the initials, from the first word and the last.

03

A photo

src: the photo. The initials show while it loads, and if it fails.

04

Sizes

sm 24, md 32, lg 40 and xl 48px; md by default.

24
32
40
48

05

A status

status: a dot on the bottom-end corner, in Badge's tones, 8 to 14px with the size. Its label is read with the name: "Priya Sharma, Online".

06

People and tenants

A person is a circle; an organisation, an application or a tenant is a square, shape="square", so it never reads as a person.

07

Beside a name

decorative hides it where the name is written beside it. AvatarItem, from experimental, draws the pair.

Priya Sharmapriya@acme.in
Rahul VermaAdmin · Finance
Globex IndiaTenant · 1,284 users
Next — AvatarUsage