Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
  • Data display
    • Accordion
    • Accordion
    • Avatar
    • Avatar
    • Blobby
    • Card
    • Card
    • Collapsible
    • Divider
    • Emoji
    • Emoji
    • Gradient
    • Gradient
    • Icon
    • Image
    • ListItem
    • ListItem
    • ResponsiveImage
    • SemanticList
    • Tag
    • Timeline
  • Typography
  • Accessibility
  • Contrib
  • Deprecated
  • Data display
  • Avatar

Avatar

Shows a person or an organisation as a small image or their initials. Decorative, so the surrounding text must identify who it is.

Health
Component health
Source
View on Github
Design
View Figma
Storybook
View in Storybook
Accessibility

compliant

Platform
Mobile
📱 Mobile-only
This component is only for mobile. To see how it looks like you can check the mobile storybook with:
yarn workspace alan-mobile dev:install-client -p ios
yarn workspace alan-mobile dev:storybook
  • Overview
  • Props
  • Figma
info

Mobile components cannot be previewed in the browser. Use Storybook mobile or run the app locally to test.

Playground​

Loading...

Accessibility​

Avatars are decorative images. Please ensure you are using it with accessible information that identify the related user (the name most of the time).

Avatar props

NameTypeDefault ValueDescriptionUsage count
backgroundColor
94 possibilities"pink500""pink700""pink900""grey200""grey500""grey600""blue700""grey50""grey100""grey200HighContrast""grey300""grey400""grey600HighContrast""grey700""grey800""grey900""blue50""blue100""blue300""blue500""blue900""teal50""teal100""teal300""teal500""teal700""teal900""pink50""pink100""pink300""pink500HighContrast""pink700HighContrast""pink900HighContrast""yellow50""yellow100""yellow300""yellow500""yellow700""whiteAlpha100""whiteAlpha300""whiteAlpha400""whiteAlpha500""whiteAlpha600""whiteAlpha700""whiteAlpha800""whiteAlpha900""white""black""fluoYellow""cream""lightCream""blue""grey""pink""transparent""negative""positive""action""warning""action50""action100""action300""action500""action700""action900""positive50""positive100""positive300""positive500""positive700""positive900""warning50""warning100""warning300""warning500""warning500HighContrast""warning700""warning700HighContrast""warning900""warning900HighContrast""negative50""negative100""negative300""negative500""negative500HighContrast""negative700""negative700HighContrast""negative900""negative900HighContrast""brand""facebook""twitter""linkedin"undefined
grey50
color
6 possibilities"blue""green""orange""pink""red"undefined
green
emoji*string
image*number
imageURL*string
marmot*MarmotExpression
size
8 possibilities"size20""size24""size32""size40""size48""size60""size84"undefined
size40
style
6 possibilitiesundefinednullfalse""ViewStyleRecursiveArray<Falsy | ViewStyle>
withBadgebooleanundefined
withBorderbooleanundefined
Edit this page
Previous
Accordion
Next
Avatar
  • Playground
  • Accessibility