Class: Solidstats::Ui::StatusBadgeComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/solidstats/ui/status_badge_component.rb

Overview

Reusable status badge component for consistent status indicators

Instance Method Summary collapse

Methods inherited from BaseComponent

#css_classes, #format_number, #safe_get, #status_class, #status_icon, #status_text

Constructor Details

#initialize(status:, text: nil, size: :md, show_icon: true) ⇒ StatusBadgeComponent



7
8
9
10
11
12
# File 'app/components/solidstats/ui/status_badge_component.rb', line 7

def initialize(status:, text: nil, size: :md, show_icon: true)
  @status = status
  @text = text
  @size = size
  @show_icon = show_icon
end