# `FrappeUIPhx.Components.Avatar`
[🔗](https://github.com/moacirbishopcamata/frappe_ui_phx/blob/v0.3.1/lib/frappe_ui_phx/components/avatar.ex#L1)

Avatar com imagem ou iniciais do `label`. Formas `circle | square`.

# `avatar`

## Attributes

* `label` (`:string`) - Defaults to `nil`.
* `image` (`:string`) - Defaults to `nil`.
* `size` (`:atom`) - Defaults to `:md`. Must be one of `:xs`, `:sm`, `:md`, `:lg`, `:xl`, `:"2xl"`, or `:"3xl"`.
* `shape` (`:atom`) - Defaults to `:circle`. Must be one of `:circle`, or `:square`.
* `class` (`:any`) - Defaults to `nil`.
* Global attributes are accepted.

# `initial`

```elixir
@spec initial(String.t() | nil) :: String.t()
```

Primeira letra maiúscula do rótulo, ou `""` quando ausente.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
