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
nameRequiredstringThe person's name. Gives the initials and the accessible name
srcstringA photo. Without one, the initials show
size243624 in the sidebar, 36 in the reading paneDefault:
36colourTagColourThe tag colour behind the initialsDefault:
blueprovider'gmail'Shows the provider badge
classNamestringAdditional CSS classes