A

Usage

import { Avatar } from '@loomhq/lens'
<Avatar letter="A"/>

Sizes

With image

With letter

With children

With alternative text

If the avatar is not purely decorative, add an image text alternative for accessibility reasons.

Theme Color

Add a color combination for your Avatar

Props

name
type
default
altText
string
''
size
string | number
4
themeColor
'orange' | 'blue' | 'yellow' | 'teal'
'blue'
letter
string
imageSrc
string
children
React.ReactNode
height
number
width
number
hasBackgroundColor
boolean
backgroundColor
string