Class: KozenetUi::HeaderComponent::CtaComponent

Inherits:
BaseComponent
  • Object
show all
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

Examples:

<%= render KozenetUi::HeaderComponent::CtaComponent.new(href: "/signup") { "Get Started" } %>

Constant Summary

Constants inherited from BaseComponent

BaseComponent::UNSET

Instance Attribute Summary

Attributes inherited from BaseComponent

#html_options, #size, #variant

Instance Method Summary collapse

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: "#", **html_options)
  super(**html_options)
  @href = href
end