# Avatar

Identity at a glance, with initials that survive a missing image.

- Family: Content, imported from `mizu-ui` or `mizu-ui/content`
- Docs: https://mizu.user64bit.world/components/avatar
- Source: https://github.com/0xuser64bit/mizu/blob/main/packages/mizu/src/content/Media.tsx

## Usage

```tsx
import { Avatar } from "mizu-ui";

export function Example() {
  return (
    <div style={{ display: "flex", gap: 12, alignItems: "center" }}>
      <Avatar name="Mizu Workshop" />
      <Avatar name="Aya Mori" size={60} />
      <span className="mizu-field-hint">A small team, clearly named.</span>
    </div>
  );
}
```

## Copy it with the shadcn CLI

```sh
npx shadcn@latest init 0xuser64bit/mizu/preset # once, where there is no components.json
npx shadcn@latest add 0xuser64bit/mizu/avatar
```

## Props

- `name`: `string`. Accessible identity and fallback initials.
- `src / size`: `string / number` (default `44`). Optional image and diameter in pixels.

## Accessibility

One named image; redundant initials are hidden. Failed images fall back to initials.

## Motion

Static identity.
