Class: UiComponents::DaisyUi::DataDisplay::ChatComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- UiComponents::DaisyUi::DataDisplay::ChatComponent
- Defined in:
- app/components/ui_components/daisy_ui/data_display/chat_component.rb
Constant Summary collapse
- ALIGNS =
%w[start end].freeze
- CSS_CLASSES_DEFAULT =
%w[chat].freeze
- CSS_CLASSES_VARIANTS =
(ALIGNS.map { |key| "chat-#{key}" }).freeze
- CSS_CLASSES =
( CSS_CLASSES_DEFAULT + CSS_CLASSES_VARIANTS + Chat::HeaderComponent::CSS_CLASSES + Chat::BubbleComponent::CSS_CLASSES + Chat::::CSS_CLASSES ).freeze
Constants inherited from BaseComponent
BaseComponent::AXES, BaseComponent::COLORS, BaseComponent::KINDS, BaseComponent::SIZES
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
-
#initialize(align: nil, **args) ⇒ ChatComponent
constructor
A new instance of ChatComponent.
Methods inherited from BaseComponent
Constructor Details
#initialize(align: nil, **args) ⇒ ChatComponent
Returns a new instance of ChatComponent.
33 34 35 36 37 38 39 40 |
# File 'app/components/ui_components/daisy_ui/data_display/chat_component.rb', line 33 def initialize( align: nil, **args ) @align = align super(**args) end |