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

Container de toasts: mostra mensagens de `flash` (renderizadas no servidor) e
as enviadas por `FrappeUIPhx.Toast.put_toast/4` (via hook colocated).

# `flash_kind`

```elixir
@spec flash_kind(String.t()) :: String.t()
```

Flash `info` do Phoenix é uma confirmação: usa o estilo de sucesso.

# `styles`

```elixir
@spec styles() :: %{required(String.t()) =&gt; String.t()}
```

Classes por tipo de toast (`info | success | warning | error`).

# `toast_container`

## Attributes

* `id` (`:string`) - Defaults to `"frappe-ui-toasts"`.
* `flash` (`:map`) - Defaults to `%{}`.
* `class` (`:any`) - Defaults to `nil`.
* Global attributes are accepted.

---

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