# Avatar ## Example ```svelte

Single Avatar

Avatars Group

``` ## Documentation ## Usage ```svelte ``` ## API Reference ### Avatar An image element with a fallback for representing a user. | Prop | Type | Default | Description | |------|------|---------|-------------| | src | `string` | `-` | The image source URL. | | alt | `string` | `-` | Alt text for the avatar image. | | fallback | `string` | `-` | Fallback text to display when the image is not available (e.g. initials). | | useThemeColor | `boolean` | `false` | Whether to apply theme color styling to the image. | | imageClass | `string` | `-` | Additional CSS classes to apply to the image element. | | fallbackClass | `string` | `-` | Additional CSS classes to apply to the fallback element. | | imageRef | `HTMLImageElement` | `-` | Reference to the image DOM element. (bindable) | | fallbackRef | `HTMLElement` | `-` | Reference to the fallback DOM element. (bindable) | | class | `string` | `-` | Additional CSS classes to apply to the root element. | | ref | `HTMLElement` | `-` | The underlying DOM element. (bindable) | ### AvatarGroup A group of overlapping avatars displayed in a row. | Prop | Type | Default | Description | |------|------|---------|-------------| | users | `{ src?: string; alt?: string; fallback?: string }[]` | `-` | The list of users to display avatars for. (required) | | avatarClass | `string` | `-` | Additional CSS classes to apply to each avatar. | | imageClass | `string` | `-` | Additional CSS classes to apply to each avatar image. | | fallbackClass | `string` | `-` | Additional CSS classes to apply to each avatar fallback. | | class | `string` | `-` | Additional CSS classes to apply to the group container. | | ref | `HTMLDivElement` | `-` | The underlying DOM element. (bindable) |