Class: UiComponents::DaisyUi::DataDisplay::StatusComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- UiComponents::DaisyUi::DataDisplay::StatusComponent
- Defined in:
- app/components/ui_components/daisy_ui/data_display/status_component.rb
Constant Summary collapse
- ANIMATIONS =
%w[ping bounce].freeze
- CSS_CLASSES_DEFAULT =
%w[status].freeze
- CSS_CLASSES_VARIANTS =
( SIZES.map { |key| "status-#{key}" } + COLORS.map { |key| "status-#{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(size: nil, color: nil, animate: nil, **args) ⇒ StatusComponent
constructor
A new instance of StatusComponent.
Methods inherited from BaseComponent
Constructor Details
#initialize(size: nil, color: nil, animate: nil, **args) ⇒ StatusComponent
Returns a new instance of StatusComponent.
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/components/ui_components/daisy_ui/data_display/status_component.rb', line 20 def initialize( size: nil, color: nil, animate: nil, **args ) @size = size @color = color @animate = animate super(**args) end |