Class: UiComponents::DaisyUi::DataDisplay::Chat::BubbleComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- UiComponents::DaisyUi::DataDisplay::Chat::BubbleComponent
- Defined in:
- app/components/ui_components/daisy_ui/data_display/chat/bubble_component.rb
Constant Summary collapse
- CSS_CLASSES_DEFAULT =
%w[chat-bubble].freeze
- CSS_CLASSES_VARIANTS =
(COLORS.map { |key| "chat-bubble-#{key}" }).freeze
- CSS_CLASSES =
(CSS_CLASSES_DEFAULT + CSS_CLASSES_VARIANTS).freeze
Constants inherited from BaseComponent
BaseComponent::ALIGNS, BaseComponent::AXES, BaseComponent::COLORS, BaseComponent::KINDS, BaseComponent::SIZES
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
-
#initialize(color: nil, **args) ⇒ BubbleComponent
constructor
A new instance of BubbleComponent.
Methods inherited from BaseComponent
Constructor Details
#initialize(color: nil, **args) ⇒ BubbleComponent
Returns a new instance of BubbleComponent.
16 17 18 19 20 21 22 23 |
# File 'app/components/ui_components/daisy_ui/data_display/chat/bubble_component.rb', line 16 def initialize( color: nil, **args ) @color = color super(**args) end |