Avatar

A person, as a photo or their initials on a tag colour. 36 beside the sender in the reading pane, 24 in the sidebar with the provider badge.

Sizes

36 in the reading pane, 24 in the sidebar user row and the rail. The initials are Label/SM at 36 and Label/XS at 24.

Colours

colour takes any tag colour: tag/{colour}/bg behind tag/{colour}/text. Blue is the default.

Provider badge

provider adds a 10px badge bottom right that says which provider the account is on.

Usage

import { Avatar } from "@kuori/ui/avatar";
<Avatar name="Mara Lindqvist" />

Avatar

PropTypeDescription
nameRequired
string
The person's name. Gives the initials and the accessible name
src
string
A photo. Without one, the initials show
size
2436
24 in the sidebar, 36 in the reading paneDefault: 36
colour
TagColour
The tag colour behind the initialsDefault: blue
provider
'gmail'
Shows the provider badge
className
string
Additional CSS classes