Skip to content

Avatar

Used to display profile image, initial or fallback icon.

Import

js
import { MpAvatar, MpAvatarGroup } from '@mekari/pixel3'

Playground

API

MpAvatar

Props
Events
Slots
NameTypeDefault
id
Id of avatar.
string -
name
Name of avatar.
string -
variant
Variant of avatar.
square | circlecircle
variant-color
Variant color of avatar. Not set will be get random color.
gray | sky | teal | violet | amber | rose | stone | lime | pink -
size
Size of avatar.
sm | md | lg | xlmd
has-border
If true, avatar border will be displayed.
booleanfalse
border-color
Border color of avatar.
string -
src
Image url of avatar.
string -
icon
Icon of avatar.
string -
icon-variant
Icon variant of avatar.
outline | duotone | fill -
icon-color
Icon color of avatar.
string -

MpAvatarGroup

Props
Events
Slots
NameTypeDefault
id
Id of avatar group.
string -
size
Size of avatar in group.
sm | md | lg | xlmd
max
Displayed maximum avatar.
number3
spacing
Space between each avatar in group.
number-2
border-color
Border color of avatar.
string -

Usage

Variant

Variant color

Size

With group