Class: Anchor::TabBarComponent
- Defined in:
- app/components/anchor/tab_bar_component.rb
Constant Summary
Constants included from ViewHelper
Instance Method Summary collapse
-
#initialize(label:, **kwargs) ⇒ TabBarComponent
constructor
A new instance of TabBarComponent.
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(label:, **kwargs) ⇒ TabBarComponent
Returns a new instance of TabBarComponent.
5 6 7 8 9 10 |
# File 'app/components/anchor/tab_bar_component.rb', line 5 def initialize(label:, **kwargs) kwargs[:aria] ||= {} kwargs[:aria][:label] = label super(**kwargs) end |