Sha256: 67c5b57445bcf8b04340311d4be933d9c4b2e1849a42eee5f8c98967351a8d68

Contents?: true

Size: 550 Bytes

Versions: 3

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbSelectableList
    class SelectableList
      include Playbook::Props

      partial "pb_selectable_list/selectable_list"

      prop :variant, type: Playbook::Props::Enum,
                     values: %w[radio checkbox],
                     default: "radio"

      prop :text, type: Playbook::Props::String

      prop :items, type: Playbook::Props::Array,
                   default: []

      def classname
        generate_classname("pb_selectable_list_kit")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
playbook_ui-7.4.0.pre.alpha4 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.4.0.pre.alpha1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.3.0.pre.alpha8 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb