Class: Protos::Badge

Inherits:
Component show all
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

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_templateObject



23
24
25
# File 'lib/protos/badge.rb', line 23

def view_template(&)
  span(**attrs, &)
end