Noora.TabMenu (noora v0.1.0-alpha.4)

Tab menu components.

Summary

Functions

tab_menu_horizontal(assigns)

Attributes

  • Global attributes are accepted.

Slots

  • inner_block (required)

tab_menu_horizontal_item(assigns)

Attributes

  • label (:string) (required) - The label of the menu item.
  • selected (:boolean) - Whether the item is selected. Defaults to false.
  • navigate (:string) - Navigate to a different LiveView. Defaults to nil.
  • patch (:string) - Patches the current LiveView. Defaults to nil.
  • Global attributes are accepted.

Slots

  • icon_left - Icon displayed on the left of an item.
  • icon_right - Icon displayed on the right of an item.

tab_menu_vertical(assigns)

Attributes

  • label (:string) (required) - The label of the menu item.
  • Global attributes are accepted.

Slots

  • icon_left - Icon displayed on the left of an item.
  • icon_right - Icon displayed on the right of an item.