Class: TailwindComponent
- Inherits:
-
Tramway::BaseComponent
- Object
- ViewComponent::Base
- Tramway::BaseComponent
- TailwindComponent
- Defined in:
- app/components/tailwind_component.rb
Overview
Base TailwindComponent. Contains base features for all tailwind components
Direct Known Subclasses
Tailwinds::Form::DateFieldComponent, Tailwinds::Form::FileFieldComponent, Tailwinds::Form::MultiselectComponent, Tailwinds::Form::NumberFieldComponent, Tailwinds::Form::SelectComponent, Tailwinds::Form::SubmitButtonComponent, Tailwinds::Form::TextAreaComponent, Tailwinds::Form::TextFieldComponent, Tailwinds::Nav::ItemComponent, Tailwinds::NavbarComponent
Constant Summary collapse
- SIZE_CLASSES =
{ small: { text_input: 'text-sm px-2 py-1', select_input: 'text-sm px-2 py-1', file_button: 'text-sm px-3 py-1', submit_button: 'text-sm px-3 py-1', multiselect_input: 'text-sm px-2 py-1' }, middle: { text_input: 'text-base px-3 py-2', select_input: 'text-base px-3 py-2', file_button: 'text-base px-4 py-2', submit_button: 'text-base px-4 py-2', multiselect_input: 'text-base px-3 py-2' }, large: { text_input: 'text-lg px-4 py-3', select_input: 'text-lg px-4 py-3', file_button: 'text-lg px-5 py-3', submit_button: 'text-lg px-5 py-3', multiselect_input: 'text-lg px-4 py-3' } }.freeze
Method Summary
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