# avatar

```ts
import { AvatarModule } from '@anguless/angulux/avatar';
```

## Avatar

`agl-avatar` — component

Inherits every input, output and slot of `BaseComponent` — see [basecomponent.md](basecomponent.md).

Avatar represents people using icons, labels and images.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `label` | `string \| undefined` | _not documented_ | Defines the text to display. |
| `icon` | `string \| undefined` | _not documented_ | Defines the icon to display. |
| `image` | `string \| undefined` | _not documented_ | Defines the image to display. |
| `size` | `'normal' \| 'large' \| 'xlarge' \| undefined` | _not documented_ | Size of the element. |
| `shape` | `'square' \| 'circle' \| undefined` | _not documented_ | Shape of the element. |
| `styleClass` | `string \| undefined` | _not documented_ | Class of the element. **Deprecated:** since v20.0.0, use `class` instead. |
| `ariaLabel` | `string \| undefined` | _not documented_ | Establishes a string value that labels the component. |
| `ariaLabelledBy` | `string \| undefined` | _not documented_ | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |

| Output | Type | Description |
| --- | --- | --- |
| `onImageError` | `EventEmitter<Event>` | This event is triggered if an error occurs while loading an image file. |
