Avatar
Represents users through an image, initials, or icons. Ideal for profile displays, team lists, and user interactions.
Loading...
Installation
Usage
API
Avatar Props
For Avatar Root
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | Content placed inside the avatar container. Typically used to render the Avatar.Image component. | - |
| className | string | Additional CSS classes to customize the size, layout, or styling of the avatar container. | - |
For Avatar Image
| Attribute | Type | Description | Default |
|---|---|---|---|
| src | string | Source URL of the avatar image. | - |
| alt | string | Alternative text describing the avatar image for accessibility. | - |
| className | string | Additional CSS classes to customize the avatar image styling. | - |
Examples
Default
Group Avatar
Loading...
Group Avatar [Overlaped]
Loading...
Credits
This component is inspired by Rehman Kalawant Design Shared On Github.