Class: DesignSystem::Generic::TabComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/design_system/generic/tab_component.rb

Overview

Tabs rendered by ds_tab: a list of tab links followed by their panels, with the selected panel visible. Brand subclasses inherit unchanged.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::CssHelper

#css_class_options_merge

Methods included from BrandDerivable

#brand

Constructor Details

#initialize(tab:) ⇒ TabComponent

Returns a new instance of TabComponent.



6
7
8
9
# File 'app/components/design_system/generic/tab_component.rb', line 6

def initialize(tab:)
  super()
  @tab = tab
end

Instance Attribute Details

#tabObject (readonly)

Returns the value of attribute tab.



11
12
13
# File 'app/components/design_system/generic/tab_component.rb', line 11

def tab
  @tab
end