# KptAvatar (kpt-avatar) An avatar - an image, initials (from `name`) or an icon. Import: `import { KptAvatar } from '@konce-pt/angular';` ## Inputs - `src`: string|null (an image); `name`: string (initials, up to 2 letters); `icon`: string|null - `size`: 'sm'|'md'|'lg'|'xl'; `shape`: 'circle'|'square' - `decorative`: boolean - hides the avatar from screen readers (the name is written next to it) ## Examples ## Accessibility `name` goes into the native `title` (initials alone say nothing). With a photo the name is the image's `alt`; without one the avatar is `role="img"` with `aria-label`, and the initials are `aria-hidden`. A photo that fails to load falls back to the initials (or the icon); a new `src` is tried again. `decorative` removes the avatar from the accessibility tree - use it when the name is already written next to it. ## Tokens `--kpt-color-muted`, `--kpt-color-on-muted`, `--kpt-radius-full`/`--kpt-radius-md`.