Skip to content

Avatar

An image, initials or icon representing a person or entity. Sizes, shapes, presence and stacked groups.

Images and initials

Ana Popescu Kenji Sato LT RB

Sizes

XS SM MD LG XL

Presence and group

Mira Ion
A B C +9

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/avatar.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-avatarBase.
mn-avatar-xs · sm · lg · xlSizes.
mn-avatar-squareRounded square.
mn-avatar-groupOverlapping stack.
mn-avatar-wrap + mn-presenceStatus dot: mn-online, mn-busy, mn-away.

Accessibility

  • Give images meaningful alt text, or alt="" when the name is printed next to it.
  • Presence dots are visual: include the status in text or a label.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page