Class: DsfrComponent::SkiplinkComponent
- Defined in:
- app/components/dsfr_component/skiplink_component.rb
Constant Summary
Constants inherited from Base
Base::HEADING_LEVELS, Base::SIZES
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(label:, links:, html_attributes: {}) ⇒ SkiplinkComponent
constructor
A new instance of SkiplinkComponent.
Constructor Details
#initialize(label:, links:, html_attributes: {}) ⇒ SkiplinkComponent
Returns a new instance of SkiplinkComponent.
5 6 7 8 9 10 |
# File 'app/components/dsfr_component/skiplink_component.rb', line 5 def initialize(label:, links:, html_attributes: {}) @label = label @links = links super(html_attributes: html_attributes) end |