Class: Tramway::Nav::Item::LinkComponent
- Inherits:
-
Tramway::Nav::ItemComponent
- Object
- ViewComponent::Base
- BaseComponent
- TailwindComponent
- Tramway::Nav::ItemComponent
- Tramway::Nav::Item::LinkComponent
- Defined in:
- app/components/tramway/nav/item/link_component.rb
Overview
Render button styled with Tailwind using link_to methods
Constant Summary
Constants inherited from TailwindComponent
TailwindComponent::SIZE_CLASSES
Constants included from Helpers::ViewsHelper
Helpers::ViewsHelper::FORM_SIZES
Instance Method Summary collapse
-
#initialize(**options) ⇒ LinkComponent
constructor
A new instance of LinkComponent.
Methods inherited from Tramway::Nav::ItemComponent
Methods included from Helpers::ViewsHelper
#tramway_back_button, #tramway_badge, #tramway_button, #tramway_cell, #tramway_chat, #tramway_container, #tramway_flash, #tramway_form_for, #tramway_header, #tramway_main_container, #tramway_row, #tramway_table, #tramway_title
Methods included from Helpers::ComponentHelper
Methods included from Helpers::DecorateHelper
Constructor Details
#initialize(**options) ⇒ LinkComponent
Returns a new instance of LinkComponent.
11 12 13 14 |
# File 'app/components/tramway/nav/item/link_component.rb', line 11 def initialize(**) @href = [:href] @options = Rules::TurboHtmlAttributesRules.prepare_turbo_html_attributes(options:) end |