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
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_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 |
# File 'app/components/tailwinds/nav/item_component.rb', line 8 def style @style ||= [ 'text-white', 'hover:bg-gray-300', 'hover:text-gray-800', 'px-4', 'py-2', 'rounded', 'whitespace-nowrap', 'dark:hover:bg-gray-700', 'dark:hover:text-gray-400', 'dark:text-white' ].join(' ') end |