Sha256: b6e32f379bc613df3a54623f8b852c9ef051c302fa41277524f6007711a829a8

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbLayout
    class Item
      include Playbook::Props

      partial "pb_layout/item"

      prop :size, type: Playbook::Props::Enum,
                  values: %w[sm md lg],
                  default: "sm"

      def classname
        generate_classname("layout_item") + size_class
      end

    private

      def size_class
        " size_#{size}"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
playbook_ui-7.16.0.pre.alpha5 app/pb_kits/playbook/pb_layout/item.rb
playbook_ui-7.16.0.pre.alpha4 app/pb_kits/playbook/pb_layout/item.rb
playbook_ui-7.16.0.pre.alpha3 app/pb_kits/playbook/pb_layout/item.rb
playbook_ui-7.16.0.pre.alpha2 app/pb_kits/playbook/pb_layout/item.rb
playbook_ui-7.16.0.pre.alpha1 app/pb_kits/playbook/pb_layout/item.rb
playbook_ui-7.16.0 app/pb_kits/playbook/pb_layout/item.rb