Beacon.LiveAdmin.StationUI.HTML.TabGroup (Beacon LiveAdmin v0.4.0)

View Source

Summary

Functions

Attributes

  • class (:any) - Defaults to "gap-x-5".
  • default_index (:string) - the index of the tab that should be active when initially rendered. Defaults to "0".
  • id (:any) (required)
  • on_select (:any) - the function for handling additional behavior for phx-click on each tab. Defaults to nil.

Slots

  • tab (required) - Accepts attributes:
    • class (:any) - text-base.
    • index (:string) - the unique index of the tab for matching with a tab panel (defaults to the zero-based numerical position of the slot).
  • tab_divider - Accepts attributes:
    • class (:any) - h-5.
  • tab_panel (required) - Accepts attributes:
    • class (:any)
    • index (:string) - the unique index of the tab panel for matching with a tab (defaults to the zero-based numerical position of the slot).

Functions

base_classes()

tab_base_classes()

tab_default_classes()

tab_divider_base_classes()

tab_divider_default_classes()

tab_group(assigns)

Attributes

  • class (:any) - Defaults to "gap-x-5".
  • default_index (:string) - the index of the tab that should be active when initially rendered. Defaults to "0".
  • id (:any) (required)
  • on_select (:any) - the function for handling additional behavior for phx-click on each tab. Defaults to nil.

Slots

  • tab (required) - Accepts attributes:
    • class (:any) - text-base.
    • index (:string) - the unique index of the tab for matching with a tab panel (defaults to the zero-based numerical position of the slot).
  • tab_divider - Accepts attributes:
    • class (:any) - h-5.
  • tab_panel (required) - Accepts attributes:
    • class (:any)
    • index (:string) - the unique index of the tab panel for matching with a tab (defaults to the zero-based numerical position of the slot).

tab_panel_base_classes()