Class: KozenetUi::HeaderComponent::BrandComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- KozenetUi::HeaderComponent::BrandComponent
- Defined in:
- app/components/kozenet_ui/header_component/brand_component.rb
Overview
Brand section for the HeaderComponent Renders the brand/logo area, typically on the left of the header
Constant Summary
Constants inherited from BaseComponent
Instance Attribute Summary
Attributes inherited from BaseComponent
#html_options, #size, #variant
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(href: "#", **html_options) ⇒ BrandComponent
constructor
A new instance of BrandComponent.
Constructor Details
#initialize(href: "#", **html_options) ⇒ BrandComponent
Returns a new instance of BrandComponent.
14 15 16 17 |
# File 'app/components/kozenet_ui/header_component/brand_component.rb', line 14 def initialize(href: "#", **) super(**) @href = href end |
Instance Method Details
#call ⇒ Object
19 20 21 22 23 |
# File 'app/components/kozenet_ui/header_component/brand_component.rb', line 19 def call tag.a(href: @href, class: brand_classes) do safe_join([content]) end end |