Class: Spark::Badge
- Inherits:
-
Component::Base
- Object
- ActionView::Component::Base
- Component::Base
- Spark::Badge
- 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
-
#initialize ⇒ Badge
constructor
A new instance of Badge.
Methods inherited from Component::Base
Constructor Details
#initialize ⇒ Badge
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 |