Sha256: 8e2260de6c3ddc1647894e29b5d613ae6888f8ae3ff4b53827e3a163ab05405d

Contents?: true

Size: 282 Bytes

Versions: 124

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbKitHelper
    include ::Playbook::PbFormsHelper

    def pb_rails(kit_name, props: {}, &block)
      kit = Playbook::KitResolver.resolve(kit_name.to_s)
      render_component kit.new(props, &block), &block
    end
  end
end

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
playbook_ui-9.16.0 lib/playbook/pb_kit_helper.rb
playbook_ui-9.15.0 lib/playbook/pb_kit_helper.rb
playbook_ui-9.15.0.pre.decouple.website1 lib/playbook/pb_kit_helper.rb
playbook_ui-9.14.1.alpha.radio.alignment lib/playbook/pb_kit_helper.rb
playbook_ui-9.14.1.alpha.highcharts9 lib/playbook/pb_kit_helper.rb
playbook_ui-9.14.1 lib/playbook/pb_kit_helper.rb
playbook_ui-9.13.0 lib/playbook/pb_kit_helper.rb
playbook_ui-9.12.0 lib/playbook/pb_kit_helper.rb
playbook_ui-9.12.0.pre.text.addon lib/playbook/pb_kit_helper.rb
playbook_ui-9.11.0 lib/playbook/pb_kit_helper.rb
playbook_ui-9.10.0 lib/playbook/pb_kit_helper.rb
playbook_ui-9.10.0.pre.date.time.stacked.1 lib/playbook/pb_kit_helper.rb
playbook_ui-9.10.0.pre.alpha2 lib/playbook/pb_kit_helper.rb
playbook_ui-9.10.0.pre.alpha1 lib/playbook/pb_kit_helper.rb
playbook_ui-9.9.0.alpha.inline1 lib/playbook/pb_kit_helper.rb
playbook_ui-9.9.0 lib/playbook/pb_kit_helper.rb
playbook_ui-9.8.0 lib/playbook/pb_kit_helper.rb
playbook_ui-9.7.0.pre.alphawidth1 lib/playbook/pb_kit_helper.rb
playbook_ui-9.7.0.pre.alpha.a11y.btn lib/playbook/pb_kit_helper.rb
playbook_ui-9.7.0 lib/playbook/pb_kit_helper.rb