Sha256: 027a801e3a4e5335b3264512d36fb7954a8f2e7bec584c279d5ecd2aaf7aad4e

Contents?: true

Size: 653 Bytes

Versions: 227

Compression:

Stored size: 653 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbIconCircle
    class IconCircle < Playbook::KitBase
      prop :icon, required: true
      prop :emoji, type: Playbook::Props::String,
                   default: ""
      prop :size, type: Playbook::Props::Enum,
                  values: %w[xs sm md base lg xl],
                  default: "md"
      prop :variant, type: Playbook::Props::Enum,
                     values: %w[default royal blue orange purple teal red yellow green orange],
                     default: "default"

      def classname
        generate_classname("pb_icon_circle_kit", size, variant)
      end
    end
  end
end

Version data entries

227 entries across 227 versions & 1 rubygems

Version Path
playbook_ui-12.34.0 app/pb_kits/playbook/pb_icon_circle/icon_circle.rb
playbook_ui-12.33.1.pre.alpha.PLAY933navkitcollapsible994 app/pb_kits/playbook/pb_icon_circle/icon_circle.rb
playbook_ui-12.33.1 app/pb_kits/playbook/pb_icon_circle/icon_circle.rb
playbook_ui-12.33.0.pre.alpha.PLAY905reactionbuttons982 app/pb_kits/playbook/pb_icon_circle/icon_circle.rb
playbook_ui-12.33.0.pre.alpha.PLAY905reactionbuttons979 app/pb_kits/playbook/pb_icon_circle/icon_circle.rb
playbook_ui-12.33.0.pre.alpha.revert2650closedialogonoutsideclick977 app/pb_kits/playbook/pb_icon_circle/icon_circle.rb
playbook_ui-12.33.0 app/pb_kits/playbook/pb_icon_circle/icon_circle.rb