View Source Tremorx.Components.Tab (tremorx v0.1.1)

Tabs - Tab, TabGroup, TabList, TabPanels, TabPanel

Summary

Functions

Attributes

  • id (:string) - Defaults to "tabs".
  • variant (:string) - Defaults to "line".
  • color (:string) - Defaults to nil.
  • class (:string) - Defaults to nil.
  • tab_list_class (:string) - CSS classes styles to apply to the tab list container. Defaults to nil.
  • tab_panel_class (:string) - CSS classes styles to apply to the tabpanel container. Defaults to nil.
  • tab_panels_class (:string) - CSS classes styles to apply to the tabpanels container. Defaults to nil.
  • tab_class (:string) - CSS classes styles to apply to the tab button. Defaults to nil.
  • Global attributes are accepted.

Slots

  • tab - The tab button.
  • tab_content - The content after the tab buttons.
  • tabpanel - The tab content.

Functions

Attributes

  • id (:string) - Defaults to "tabs".
  • variant (:string) - Defaults to "line".
  • color (:string) - Defaults to nil.
  • class (:string) - Defaults to nil.
  • tab_list_class (:string) - CSS classes styles to apply to the tab list container. Defaults to nil.
  • tab_panel_class (:string) - CSS classes styles to apply to the tabpanel container. Defaults to nil.
  • tab_panels_class (:string) - CSS classes styles to apply to the tabpanels container. Defaults to nil.
  • tab_class (:string) - CSS classes styles to apply to the tab button. Defaults to nil.
  • Global attributes are accepted.

Slots

  • tab - The tab button.
  • tab_content - The content after the tab buttons.
  • tabpanel - The tab content.