Class: Tailwinds::Nav::Item::LinkComponent

Inherits:
Tailwinds::Nav::ItemComponent show all
Defined in:
app/components/tailwinds/nav/item/link_component.rb

Overview

Render button styled with Tailwind using link_to methods

Instance Method Summary collapse

Methods inherited from Tailwinds::Nav::ItemComponent

#style

Methods included from Tramway::Helpers::ComponentHelper

#component

Constructor Details

#initialize(**options) ⇒ LinkComponent



11
12
13
14
# File 'app/components/tailwinds/nav/item/link_component.rb', line 11

def initialize(**options)
  @href = options[:href]
  @options = Rules::TurboHtmlAttributesRules.prepare_turbo_html_attributes(options:)
end