Sha256: 3174f8bd342f7f76057749f6550388fbbb61e5e10958275be7a81b6e6e219713

Contents?: true

Size: 615 Bytes

Versions: 31

Compression:

Stored size: 615 Bytes

Contents

# frozen_string_literal: true

require "playbook/classnames"
require "playbook/spacing"
require "playbook/z_index"
require "playbook/number_spacing"

module Playbook
  class KitBase < ViewComponent::Base
    include Playbook::PbKitHelper
    include Playbook::Props
    include Playbook::Classnames
    include Playbook::Spacing
    include Playbook::ZIndex
    include Playbook::NumberSpacing

    prop :id
    prop :data, type: Playbook::Props::Hash, default: {}
    prop :aria, type: Playbook::Props::Hash, default: {}
    prop :children, type: Playbook::Props::Proc

    def object
      self
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
playbook_ui-10.16.0 lib/playbook/kit_base.rb
playbook_ui-10.15.1 lib/playbook/kit_base.rb
playbook_ui-10.15.1.pre.alpha.rubocop.deps lib/playbook/kit_base.rb
playbook_ui-10.15.0 lib/playbook/kit_base.rb
playbook_ui-10.14.1.pre.alpha2 lib/playbook/kit_base.rb
playbook_ui-10.14.1.pre.alpha1 lib/playbook/kit_base.rb
playbook_ui-10.14.0 lib/playbook/kit_base.rb
playbook_ui-10.13.1 lib/playbook/kit_base.rb
playbook_ui-10.13.0 lib/playbook/kit_base.rb
playbook_ui-10.13.0.pre.node.update lib/playbook/kit_base.rb
playbook_ui-10.12.0 lib/playbook/kit_base.rb
playbook_ui-10.11.0 lib/playbook/kit_base.rb
playbook_ui-10.10.0 lib/playbook/kit_base.rb
playbook_ui-10.9.0 lib/playbook/kit_base.rb
playbook_ui-10.8.1.pre.alpha.flexdeps lib/playbook/kit_base.rb
playbook_ui-10.9.0.pre.alpha1 lib/playbook/kit_base.rb
playbook_ui-10.8.0 lib/playbook/kit_base.rb
playbook_ui-10.7.1 lib/playbook/kit_base.rb
playbook_ui-10.7.0 lib/playbook/kit_base.rb
playbook_ui-10.6.2.pre.alpha.dep lib/playbook/kit_base.rb