Class: KozenetUi::HeaderComponent::CtaComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- KozenetUi::HeaderComponent::CtaComponent
- Defined in:
- app/components/kozenet_ui/header_component/cta_component.rb
Overview
CTA (Call To Action) section for the HeaderComponent Renders a prominent call-to-action button or link in the header
Constant Summary
Constants inherited from BaseComponent
Instance Attribute Summary
Attributes inherited from BaseComponent
#html_options, #size, #variant
Instance Method Summary collapse
-
#initialize(href: "#", **html_options) ⇒ CtaComponent
constructor
A new instance of CtaComponent.
Constructor Details
#initialize(href: "#", **html_options) ⇒ CtaComponent
Returns a new instance of CtaComponent.
11 12 13 14 |
# File 'app/components/kozenet_ui/header_component/cta_component.rb', line 11 def initialize(href: "#", **) super(**) @href = href end |