Sha256: dd3130c6d6a522b59388996f60f3e02fdabf54698644dd1b6328eef57157328d

Contents?: true

Size: 671 Bytes

Versions: 27

Compression:

Stored size: 671 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbIconButton
    class IconButton < ::Playbook::KitBase
      prop :type, type: Playbook::Props::Enum,
                  values: %w[button submit reset],
                  default: "button"
      prop :icon, required: false, default: "bars"
      prop :link
      prop :new_window, type: Playbook::Props::Boolean,
                        default: false
      prop :target
      prop :variant, type: Playbook::Props::Enum,
                     values: %w[default link],
                     default: "default"
      def classname
        generate_classname("pb_icon_button_kit", variant)
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5673 app/pb_kits/playbook/pb_icon_button/icon_button.rb
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5655 app/pb_kits/playbook/pb_icon_button/icon_button.rb
playbook_ui-14.12.0.pre.alpha.PBNTR720railscarddraggable5649 app/pb_kits/playbook/pb_icon_button/icon_button.rb
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5646 app/pb_kits/playbook/pb_icon_button/icon_button.rb
playbook_ui-14.11.1.pre.alpha.PBNTR440enableglobalpropspbformwith5624 app/pb_kits/playbook/pb_icon_button/icon_button.rb
playbook_ui-14.12.0 app/pb_kits/playbook/pb_icon_button/icon_button.rb
playbook_ui-14.12.0.pre.rc.12 app/pb_kits/playbook/pb_icon_button/icon_button.rb