Class: Tailwinds::Nav::ItemComponent

Inherits:
TailwindComponent show all
Defined in:
app/components/tailwinds/nav/item_component.rb

Overview

Base class for all Nav::ItemComponent classes

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

#component

Methods included from Tramway::Helpers::DecorateHelper

#tramway_decorate

Instance Method Details

#styleObject



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