Class: Anchor::TabBar::TabComponent
- Defined in:
- app/components/anchor/tab_bar/tab_component.rb
Constant Summary
Constants included from ViewHelper
Instance Method Summary collapse
-
#initialize(href:, active: false, **kwargs) ⇒ TabComponent
constructor
A new instance of TabComponent.
Methods inherited from Component
Methods included from ViewHelper
#anchor_form_with, #anchor_svg, #deep_blank?, #merge_options, #popover_trigger_attributes
Methods included from FetchOrFallbackHelper
Constructor Details
#initialize(href:, active: false, **kwargs) ⇒ TabComponent
Returns a new instance of TabComponent.
4 5 6 7 8 9 |
# File 'app/components/anchor/tab_bar/tab_component.rb', line 4 def initialize(href:, active: false, **kwargs) @href = href @active = active super(**kwargs) end |