# `Imison.Web.Layouts`
[🔗](https://github.com/elpikel/imison/blob/v0.1.0/lib/imison/web/layouts.ex#L1)

The dashboard's root layout, which loads Imison's own assets, and the app
shell shared by its pages, with the markup of `docs/design/`.

# `app`

```elixir
@spec app(map()) :: Phoenix.LiveView.Rendered.t()
```

The top bar with the main navigation (Errors and Notifications, `current`
marking the page's own link), the Live indicator when `live` says how the
page updates (`:broadcasts` or `:polling`, each with its own title), and
the Sign out button, and the page below it, headed by the
`info` and `error` flash messages.

## Attributes

* `dashboard_path` (`:string`) (required)
* `current` (`:atom`) - Defaults to `:errors`. Must be one of `:errors`, or `:notifications`.
* `flash` (`:map`) - Defaults to `%{}`.
* `live` (`:atom`) - Defaults to `nil`.Must be one of `nil`, `:broadcasts`, or `:polling`.
## Slots

* `inner_block` (required)

# `root`

```elixir
@spec root(map()) :: Phoenix.LiveView.Rendered.t()
```

The HTML document around every dashboard page.

---

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