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

Barra lateral de navegação. O item ativo (`active`) e o recolhimento
(`collapsed`) são assigns do servidor; recolhida, só os ícones aparecem.

# `sidebar`

## Attributes

* `active` (`:string`) - id do item ativo (precisa existir se informado). Defaults to `nil`.
* `collapsed` (`:boolean`) - Defaults to `false`.
* `class` (`:any`) - Defaults to `nil`.
* Global attributes are accepted.
## Slots

* `header`
* `footer`
* `item` (required) - Accepts attributes:

  * `id` (`:string`) (required)
  * `label` (`:string`) (required)
  * `icon` (`:string`)
  * `patch` (`:string`)
  * `navigate` (`:string`)
  * `href` (`:string`)
  * `click` (`:any`)

---

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