Class: Tramway::Form::RichTextAreaComponent
- Inherits:
-
TailwindComponent
- Object
- ViewComponent::Base
- BaseComponent
- TailwindComponent
- Tramway::Form::RichTextAreaComponent
- Defined in:
- app/components/tramway/form/rich_text_area_component.rb
Overview
Tailwind-styled rich text area
Constant Summary collapse
- RICH_TEXT_AREA_CLASSES =
[ 'trix-content', 'prose', 'prose-invert', 'max-w-none', 'w-full', 'min-h-40', 'rounded-md', 'border', 'border-zinc-800', 'bg-zinc-950', '!bg-zinc-950', 'text-zinc-50', '!text-zinc-50', 'shadow-sm', 'transition-colors', 'focus-visible:outline-none', 'focus-visible:ring-2', 'focus-visible:ring-zinc-300', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-zinc-950', 'disabled:cursor-not-allowed', 'disabled:opacity-50' ].freeze
Constants inherited from TailwindComponent
TailwindComponent::SIZE_CLASSES
Constants included from Helpers::ViewsHelper
Helpers::ViewsHelper::FORM_SIZES
Method Summary
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, #tramway_tooltip