Sha256: 41cc5e25578fc7527ef7ca148ca1426b37cf38f7b7797163ea7d831c6d3f9b8d

Contents?: true

Size: 774 Bytes

Versions: 2

Compression:

Stored size: 774 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbSelectableList
    class SelectableListItem
      include Playbook::Props

      prop :tabindex

      prop :checked, type: Playbook::Props::Boolean,
                     default: false
      prop :name, type: Playbook::Props::String,
                  default: "radio_name"
      prop :text, type: Playbook::Props::String
      prop :value, type: Playbook::Props::String,
                   default: "radio_text"

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

      partial "pb_selectable_list/selectable_list_item"

      def classname
        generate_classname("pb_selectable_list_item_kit")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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