Class: DesignSystem::Generic::TabComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- DesignSystem::Generic::TabComponent
- 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.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#tab ⇒ Object
readonly
Returns the value of attribute tab.
Instance Method Summary collapse
-
#initialize(tab:) ⇒ TabComponent
constructor
A new instance of TabComponent.
Methods included from Helpers::CssHelper
Methods included from BrandDerivable
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
#tab ⇒ Object (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 |