Avatar
An image element with a fallback for representing the user.
Default
With Initials Fallback
Use the
initials
prop to display fallback text when no image is provided or if the image fails to load.
Initials
JD
AB
ZK
Sizes
Use the
size
prop to change the avatar size.
Sizes
Shapes
Use the
shape
prop to switch between circle and square avatars.
Shapes
Custom Fallback Icon
Use the
:fallback
slot for custom fallback content like icons.
Custom Fallback
Avatar Group
Wrap avatars in a container with the
avatar-group
class for stacked display.
Avatar Group
With Status Indicator
Combine with a status indicator for online/offline states.
With Status
JD
AB