Sha256: e5adb3faa4e1638d813a14700949d330f9a81b6c4f840e800c0bed466a19d26f

Contents?: true

Size: 475 Bytes

Versions: 41

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbLabelPill
    class LabelPill
      include Playbook::Props

      partial "pb_label_pill/label_pill"

      prop :variant, type: Playbook::Props::Enum,
                     values: %w[success warning error info neutral primary],
                     default: "neutral"
      prop :label
      prop :pill_value

      def classname
        generate_classname("pb_label_pill_kit", variant)
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
playbook_ui-4.15.0 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.14.0 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.15.1.alpha1 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.13.1 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.13.0 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.12.0 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.11.0 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.11.0.pre.alpha3 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.11.0.pre.alpha.pre.2 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.10.0 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.10.0.pre.alpha1 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.9.0.pre.alpha1 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.9.0 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.8.2 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.8.1 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.7.1 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.7.0 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.6.1 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.6.0 app/pb_kits/playbook/pb_label_pill/label_pill.rb
playbook_ui-4.5.2 app/pb_kits/playbook/pb_label_pill/label_pill.rb