# Avatar

An image or initials for a person or team, decorative unless given a name.

- **Use it for**: A person or team, with an image or initials.
- **Not for**: Voice agent presence. Try [Persona](https://unseenui.com/components/persona/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { Avatar } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<Avatar name="Ada Lovelace" src={photoUrl} />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `initials` | `string` | Overrides the initials derived from the name. |
| `name` | `string` | Supplies the accessible name. |
| `size` | `"default" \| "sm" \| "lg"` |  |
| `src` | `string` |  |

## Keyboard

Inert content; it adds no tab stop.

## Works with

[Card](https://unseenui.com/components/card/), [Table](https://unseenui.com/components/table/), [Tag](https://unseenui.com/components/tag/), [DiffStat](https://unseenui.com/components/diff-stat/), [ElapsedTime](https://unseenui.com/components/elapsed-time/), [Numeric](https://unseenui.com/components/numeric/), [Kbd](https://unseenui.com/components/kbd/), [DotRing](https://unseenui.com/components/dot-ring/), [DotBars](https://unseenui.com/components/dot-bars/), [WeekStrip](https://unseenui.com/components/week-strip/), [HeatKeys](https://unseenui.com/components/heat-keys/), [Sparkline](https://unseenui.com/components/sparkline/)

Page: https://unseenui.com/components/avatar/
