# Avatar (@salmonui/layout/avatar)

> The Avatar function of @salmonui/layout/avatar: Avatar (.salmon-avatar, data-size, data-shape, data-tone, data-variant). With alt or name it is an image (role="img", aria-label); otherwise it is decorative (aria-hidden), for use inside a labelled control.

Canonical: https://salmonui.dev/docs/reference/layout/avatar/Avatar

```ts
import { Avatar } from '@salmonui/layout/avatar';
```

Entry index: https://salmonui.dev/docs/reference/layout/avatar (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/layout/avatar.md).

## Reference

Kind: function

```ts
function Avatar(props: AvatarProps): ReactElement;

namespace Avatar {
    export { AvatarGroup as Group };
}
```

Avatar (`.salmon-avatar`, `data-size`, `data-shape`, `data-tone`, `data-variant`). With
`alt` or `name` it is an image (`role="img"`, `aria-label`); otherwise it
is decorative (`aria-hidden`), for use inside a labelled control.
