Sha256: 504581fd1f822593ad5bfc65fc8d8fef68f5cc39eba2411d25203d37de61de16

Contents?: true

Size: 427 Bytes

Versions: 48

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbFormPill
    class FormPill < Playbook::KitBase
      prop :avatar_url
      prop :name
      prop :text
      prop :size

      def classname
        generate_classname("pb_form_pill_kit", "primary", name, text)
      end

      def display_text
        name.downcase
      end

      def size_class
        size == "small" ? " small" : ""
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
playbook_ui-9.16.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-9.15.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-9.14.1 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-9.13.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-9.9.0.alpha.inline1 app/pb_kits/playbook/pb_form_pill/form_pill.rb