Avatar

Display user identities with either text, photo, or an icon

import { Avatar } from "@plexui/ui/components/Avatar";

Examples

Overview

W

Text

D

Image

Icon

Overflow count

+9

Sizing

Colors & variants

primary
secondary
success
danger
info
discovery
soft
A
B
C
D
E
F
solid
A
B
C
D
E
F

Roundness

A
roundness

Interactive

Reference

PropTypeDefaultDescription
namestringDisplay name; used for text initial when no image/icon
imageUrlstringAbsolute URL for image avatar
IconReact.ComponentTypeIcon component for icon avatar
sizenumberWidth and height in pixels
colorstringSemantic color for text/icon avatar
variant"soft" | "solid"Style variant
overflowCountnumberShow overflow count (e.g. +9)
onClickfunctionMakes avatar interactive