Avatar
#
Implementation#
InitialsExample
MM
#
ImageExample
#
SizingExample
xl
lg
md
sm
#
RoundedExample
full
3xl
2xl
xl
lg
md
sm
none
#
Custom ColorExample
CC
#
Custom Text SizeExample
TS
#
PropsAttribute | Type | Value | Default Value | Description |
---|---|---|---|---|
label | string | Pass in initials of user. e.g. "MM" | ||
src | string | e.g. '/avatar.png' | Set an image to be the avatar | |
color | string | e.g. blue | gray | Define color resulting in bg-[color]-300. |
colorCustom | string | e.g. blue | Overrides color with your full background color. e.g. "bg-red-800" | |
rounded | string | none/sm/md/lg xl/2xl/3xl/full | ||
size | sm/md/lg/xl | |||
textSize | string | xs/sm/md/lg/xl/etc... | size based | Override font size of the size prop |