Avatar

A person or an entity in a circle, with an initial, a picture, a symbol or a count, alone or in a group.

import { Avatar, AvatarGroup } from "@plexui/react-native"

Examples

Overview

AvatarGroup

Platforms

iOS 26Android
Native componentNone: drawn as in ContactsNone: drawn as in Google Contacts
LookAn initial or a picture in a circle, groups cut out of each other; the gradient a messenger's iOS one, a lighter top over the colorThe same circles, cut out in the screen's background; the gradient the messenger's Android one, the color over a darker foot

API

Avatar

PropTypeDefaultDescription
namestring—Display name: its first letter is the initial, and it names the avatar for screen readers
imageUrlstring—Absolute URL of a picture over the initial; when it fails to load, the initial stays
sourceImageSourcePropType—The picture as an Image source (a require()d asset or { uri }), as Card.Media takes it; it wins over imageUrl
IconComponentType<IconProps>—A symbol instead of the initial, at 70% of the size
iconSizenumber70% of the sizeThe symbol's size
sizenumber28Width and height in points
color"primary" | "secondary" | "success" | "info" | "discovery" | "danger""secondary"Semantic color of the fill and the initial
variant"soft" | "solid" | "gradient""soft"Fill style: gradient is a gradient of one of seven colors under the same initial in white
overflowCountnumber—Shows +N for the people a group does not show; large counts are compact (+1k)
onPress() => void—Makes the avatar a button named by name
accessibilityLabelstring—Name for screen readers; defaults to name
testIDstring—Test id
styleStyleProp<ViewStyle>—Style of the circle

AvatarGroup

PropTypeDefaultDescription
childrenReactNode—The avatars, the first on top, each over the one after it
sizenumber28The size of every Avatar in the group that sets none of its own
cutoutColorstring—The ring that cuts each avatar out of the next one: the color the group stands on. Defaults to the screen's background; "transparent" cuts it out of the avatar, so glass or a picture under the group shows between them
spacingnumber-8How far each avatar stands from the end of the one before it: negative, they overlap (--avatar-group-spacing)
cutoutWidthnumber3The width of the cut round each avatar (--avatar-group-cutout-width)
accessibilityLabelstring—The group's name for screen readers, a list of the avatars
testIDstring—Test id
styleStyleProp<ViewStyle>—Style of the row