Oihana Next UI - 0.48.0

Application logo

Avatar Components

Avatar Examples

Simple Avatar

Avatar

Initials, And A Colour It Always Gets

InitialsAvatar takes a name and shows its initials on a colour derived from that name — the same entity lands on the same colour in a list, on its own page, and after a reload, with nothing stored.

AS
Acme Studio
BW
Borealis Works
AG
Amber Group
J
Juno
VP
Vega Partners
OL
Orion Labs

The five sizes, on one name — the colour does not move with the size.

BW
BW
BW
BW
BW

With a src the picture takes the place of the initials — one code path, since it is Picturethat answers « a source, or something in its place ». Anindicator and apalette of one's own both still apply.

Juno
J
VP
OL
AS
BW
AG
J
<InitialsAvatar name={ thing.name } size="sm" />
<InitialsAvatar name={ thing.name } src={ thing.logo } size="lg" />
<InitialsAvatar name={ thing.name } palette={ OWN_TINTS } />

Custom Sizes

Avatar
Avatar
Avatar
Avatar
Avatar

Rounded Avatars

Avatar
Avatar
Avatar

Avatar with Mask

Avatar
Avatar
Avatar
Avatar
Avatar
Avatar

Avatar Group

Avatar
Avatar
Avatar
Avatar

Avatar Group with Counter

Avatar
Avatar
Avatar
+99

Avatar with Ring

Avatar
Avatar
Avatar

Presence Indicators

Avatar
Avatar

Placeholder Avatars (Initials)

D
AI
SY
UI

Colored Placeholders

JD
MK
RL
AB
CD
EF
GH

Practical Use Cases

User Profile Header

Avatar

Sarah Johnson

@sarahjohnson

Premium
Designer

Comment Section

Avatar

Alex Martinez

Great article! This really helped me understand the topic better.

2 hours ago

Team Members

Avatar
Avatar
Avatar
Avatar
+12

Status List

Avatar

Emma Wilson

Online

Avatar

Michael Brown

Offline