# Avatar

A circular avatar for user profiles. Displays initials, icons, or images.

## When to Use

- User profile pictures
- User lists and comments
- Account indicators

## Properties

- **`size`** `string` (default: `'4x'`) — Avatar size (width and height)
- **`icon`** `ReactNode` — Icon to display

### Style Defaults

- `display` — `grid`
- `fill` — `#primary`
- `color` — `#white`
- `radius` — `round`
- `placeContent` — `center`
- `fontWeight` — `500`

### Base Properties

Supports [Base properties](../../BaseProperties.md).

### Style Properties

These properties allow direct style application without using the `styles` prop:

- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
- **Color:** `color`, `fill`, `fade`, `image`
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`

## Examples

```jsx
<Avatar>JD</Avatar>

<Avatar size="6x">AB</Avatar>

<Avatar icon={<IconUser />} />
```
