Class: Tailwinds::Nav::ItemComponent
- Inherits:
-
TailwindComponent
- Object
- ViewComponent::Base
- Tramway::BaseComponent
- TailwindComponent
- Tailwinds::Nav::ItemComponent
- Defined in:
- app/components/tailwinds/nav/item_component.rb
Overview
Base class for all Nav::ItemComponent classes
Direct Known Subclasses
Tailwinds::Nav::Item::ButtonComponent, Tailwinds::Nav::Item::LinkComponent
Constant Summary
Constants inherited from TailwindComponent
TailwindComponent::SIZE_CLASSES
Constants included from Tramway::Helpers::ViewsHelper
Tramway::Helpers::ViewsHelper::FORM_SIZES
Instance Method Summary collapse
Methods included from Tramway::Helpers::ViewsHelper
#tramway_back_button, #tramway_badge, #tramway_button, #tramway_cell, #tramway_container, #tramway_flash, #tramway_form_for, #tramway_header, #tramway_main_container, #tramway_row, #tramway_table, #tramway_title
Methods included from Tramway::Helpers::ComponentHelper
Methods included from Tramway::Helpers::DecorateHelper
Instance Method Details
#style ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/components/tailwinds/nav/item_component.rb', line 8 def style @style ||= [ theme_classes( classic: 'px-4 py-2 rounded-xl whitespace-nowrap hover:bg-gray-800 hover:text-gray-300 text-white' ) ].join(' ') end |