Avatar

An image element with a fallback for representing the user.

Default
User

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
User sm
User md
User lg
User xl

Shapes

Use the shape prop to switch between circle and square avatars.

Shapes
User circle
User square

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
User 1 JD AB +3

With Status Indicator

Combine with a status indicator for online/offline states.

With Status
Online user
JD
AB