Prop | Description | Type | Default |
---|---|---|---|
img | Specifies the image URL for the avatar. | string | - |
alt | Provides alternative text for the avatar image, enhancing accessibility. | string | - |
rounded | Applies rounded corners to the avatar. | boolean | false |
bordered | Adds a border around the avatar. | boolean | false |
color | Sets the background color of the avatar when no image is provided. | 'gray' | 'light' | 'purple' | 'success' | 'pink' | gray |
placeholderInitials | To show the user initials. | string | - |
status | Displays a status indicator on the avatar. | 'online' | 'offline' | 'away' | 'busy' | - |
stacked | Stacks multiple avatars by overlapping them. | boolean | false |
size | Sets the size of the avatar. | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | md |