View Source ZoonkWeb.Components.Tab (Zoonk v0.2.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 tofalse
.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 tofalse
.- Global attributes are accepted.