Avatar
A circular component for displaying user profile images with fallback support.
Import
Usage
CN
Avatar Props
| Attribute | Type | Default | Description |
|---|---|---|---|
| className | string | - | Additional CSS classes for styling the avatar. |
AvatarImage Props
| Attribute | Type | Default | Description |
|---|---|---|---|
| src | string | - | The source URL of the avatar image. |
| alt | string | - | Alternative text for the image. |
| className | string | - | Additional CSS classes for styling the image. |
AvatarFallback Props
| Attribute | Type | Default | Description |
|---|---|---|---|
| children | React.ReactNode | - | Content to display when image fails to load (typically initials). |
| className | string | - | Additional CSS classes for styling the fallback. |

