Class: UiComponents::DaisyUi::DataDisplay::StatComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/ui_components/daisy_ui/data_display/stat_component.rb

Constant Summary collapse

CSS_CLASSES_DEFAULT =
%w[stats shadow].freeze
CSS_CLASSES_VARIANTS =
%w[stats-horizontal stats-vertical].freeze
CSS_CLASSES =
(
  CSS_CLASSES_DEFAULT +
  CSS_CLASSES_VARIANTS +
  Stat::ItemComponent::CSS_CLASSES
).freeze

Constants inherited from BaseComponent

BaseComponent::ALIGNS, BaseComponent::AXES, BaseComponent::COLORS, BaseComponent::KINDS, BaseComponent::SIZES

Instance Attribute Summary

Attributes inherited from BaseComponent

#slot_order

Instance Method Summary collapse

Methods inherited from BaseComponent

tracks_slot_order

Constructor Details

#initialize(vertical: false, **args) ⇒ StatComponent



25
26
27
28
29
30
31
32
# File 'app/components/ui_components/daisy_ui/data_display/stat_component.rb', line 25

def initialize(
    vertical: false,
    **args
  )
  @vertical = vertical

  super(**args)
end