Class: Tramway::Form::LabelComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/tramway/form/label_component.rb

Overview

Form label for all tailwind-styled forms

Constant Summary

Constants included from Helpers::ViewsHelper

Helpers::ViewsHelper::FORM_SIZES

Instance Method Summary collapse

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

#component

Methods included from Helpers::DecorateHelper

#tramway_decorate

Instance Method Details

#form_label_classesObject



10
11
12
13
# File 'app/components/tramway/form/label_component.rb', line 10

def form_label_classes
  'block text-sm font-medium leading-none mb-2 text-zinc-200 peer-disabled:cursor-not-allowed ' \
    'peer-disabled:opacity-70'
end