Class: Spark::Badge

Inherits:
Component::Base show all
Defined in:
app/components/spark/badge.rb

Constant Summary collapse

COLOR =
%i[red yellow green teal blue purple gray].freeze
THEME =
%i[fill outline]

Instance Method Summary collapse

Methods inherited from Component::Base

#selector, #to_s, #unique_id

Constructor Details

#initializeBadge

Returns a new instance of Badge.



11
12
13
14
15
# File 'app/components/spark/badge.rb', line 11

def initialize(*)
  super

  classname.add("spark-badge")
end