Ready-to-Use Components Powered by Flowbite, ShadCN & Headless UI
Component Library
Browse and explore components
Avatar
An Avatar is a UI component used to represent a user with an image, icon, or initials.
Default Avatar


Sample Code
Border Avatar


Sample Code
Placeholder Avatar
Sample Code
Placeholder Initials
Sample Code
Dot indicator




Sample Code
Override Image


Sample Code
Avatar With Text

Sample Code
Colors










Sample Code
Stacked layout









Sample Code
Avatar Sizes




Sample Code
API ( Avatar )
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 |