Sha256: 5b847431cc799947b699847a873882e0b95f5cc0ffac6a18096360505c01123a

Contents?: true

Size: 477 Bytes

Versions: 585

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbFormGroup
    class FormGroup < Playbook::KitBase
      prop :full_width, type: Playbook::Props::Boolean,
                        default: false

      def classname
        generate_classname("pb_form_group_kit", full_width_class) + form_group_rails
      end

    private

      def full_width_class
        full_width ? "full" : nil
      end

      def form_group_rails
        " rails"
      end
    end
  end
end

Version data entries

585 entries across 585 versions & 1 rubygems

Version Path
playbook_ui-13.19.0.pre.alpha.play1141iconkitusinglibrary2264 app/pb_kits/playbook/pb_form_group/form_group.rb
playbook_ui-13.19.0.pre.alpha.PBNTR207tabledivsupport2261 app/pb_kits/playbook/pb_form_group/form_group.rb
playbook_ui-13.19.0.pre.alpha.PBNTR207tabledivsupport2245 app/pb_kits/playbook/pb_form_group/form_group.rb
playbook_ui-13.19.0 app/pb_kits/playbook/pb_form_group/form_group.rb
playbook_ui-13.18.0.pre.alpha.PLAY8672199 app/pb_kits/playbook/pb_form_group/form_group.rb