View Source ZoonkWeb.Components.Tab (Zoonk v0.1.0-alpha)

Tab components.

Link to this section Summary

Functions

Attributes

  • type (:atom) - Type of tab to render. Defaults to :main_menu.
  • title (:string) (required) - Tab title.

Slots

  • inner_block (required) - Inner block of the tab.

Renders a tab item.

Link to this section Functions

attributes

Attributes

  • type (:atom) - Type of tab to render. Defaults to :main_menu.
  • title (:string) (required) - Tab title.

slots

Slots

  • inner_block (required) - Inner block of the tab.

Renders a tab item.

examples

Examples

<.tab_item
  active={@live_action == :school_list}
  navigate={~p"/schools"}
  icon="tabler-school"
  title="Schools"
/>

attributes

Attributes

  • active (:boolean) - Whether the tab is active or not. Defaults to false.
  • icon (:string) (required) - Icon displayed above the title.
  • title (:string) (required) - Tab title.
  • adapt_on_desktop (:boolean) - Whether to adapt the tab on desktop. Defaults to false. Global attributes are accepted.