Component

Avatar

Circular avatar showing an image or initials.

Avatar as rendered in the Native-UI Storybook

What it does

  • 4 sizes (sm-xl)
  • Initials from a name
  • Custom initials background

Import

import { Avatar } from '@polprog/native-ui';

The same module is available as a direct import:

import { Avatar } from '@polprog/native-ui/components/Avatar';

Open in Storybook View source

Related components

← All components

Expo React Native 0.84+ iOS Android TypeScript Accessible