Noora.Sidebar (noora v0.1.0-alpha.4)
A flexible sidebar.
Summary
Functions
Slots
inner_block
(required)
Attributes
id
(:string
) (required)icon
(:string
) (required) - The icon of the group.label
(:string
) (required) - The label of the group.collapsible
(:boolean
) - Whether the group is collapsible. Defaults totrue
.default_open
(:boolean
) - Whether the group is open by default. Defaults tofalse
.navigate
(:string
) - Navigates to a LiveView. Defaults tonil
.patch
(:string
) - Patches the current LiveView. Defaults tonil
.href
(:any
) - Uses traditional browser navigation to the new location. Defaults tonil
.selected
(:boolean
) - Whether the item is selected. Defaults tofalse
.disabled
(:boolean
) - Whether the item is disabled. Defaults tofalse
.- Global attributes are accepted.
Slots
inner_block
Attributes
label
(:string
) (required) - The label of the item.icon
(:string
) (required) - The icon of the item.selected
(:boolean
) - Whether the item is selected. Defaults tofalse
.navigate
(:string
) - Navigates to a LiveView. Defaults tonil
.patch
(:string
) - Patches the current LiveView. Defaults tonil
.href
(:any
) - Uses traditional browser navigation to the new location. Defaults tonil
.- Global attributes are accepted.