Class: Protos::Badge
- Defined in:
- lib/protos/badge.rb
Constant Summary collapse
- Badges =
Types::Coercible::Symbol.enum( :default, :neutral, :success, :primary, :secondary, :info, :error, :warning, :ghost )
- Sizes =
Types::Coercible::Symbol.enum(:default, :xs, :sm, :md, :lg)
Instance Method Summary collapse
Methods inherited from Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#view_template ⇒ Object
23 24 25 |
# File 'lib/protos/badge.rb', line 23 def view_template(&) span(**attrs, &) end |