Sha256: e9e19e219c3d08d746d0da2ca51b48f395dc3011fbf7af80d500f553badbce30

Contents?: true

Size: 243 Bytes

Versions: 30

Compression:

Stored size: 243 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbKitHelper
    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

30 entries across 30 versions & 1 rubygems

Version Path
playbook_ui-8.3.0.alpha.select.pre.margin lib/playbook/pb_kit_helper.rb
playbook_ui-8.3.0 lib/playbook/pb_kit_helper.rb
playbook_ui-8.2.1.pre.alpha5 lib/playbook/pb_kit_helper.rb
playbook_ui-8.2.1.pre.alpha4 lib/playbook/pb_kit_helper.rb
playbook_ui-8.2.1.alpha.iconacc lib/playbook/pb_kit_helper.rb
playbook_ui-8.2.1.pre.alpha3 lib/playbook/pb_kit_helper.rb
playbook_ui-8.2.1.pre.alpha2 lib/playbook/pb_kit_helper.rb
playbook_ui-8.3.0.deps2 lib/playbook/pb_kit_helper.rb
playbook_ui-8.3.0.pre.alpha1 lib/playbook/pb_kit_helper.rb
playbook_ui-8.2.1.pre.alpha1 lib/playbook/pb_kit_helper.rb
playbook_ui-8.2.1 lib/playbook/pb_kit_helper.rb
playbook_ui-8.1.3 lib/playbook/pb_kit_helper.rb
playbook_ui-8.4.0.alpha.dependencies.2 lib/playbook/pb_kit_helper.rb
playbook_ui-8.4.0.alpha.dependencies.1 lib/playbook/pb_kit_helper.rb
playbook_ui-8.2.0.pre.alpha4 lib/playbook/pb_kit_helper.rb
playbook_ui-8.2.0.pre.alpha3 lib/playbook/pb_kit_helper.rb
playbook_ui-8.2.0 lib/playbook/pb_kit_helper.rb
playbook_ui-8.1.2 lib/playbook/pb_kit_helper.rb
playbook_ui-8.1.0.pre.alpha1 lib/playbook/pb_kit_helper.rb
playbook_ui-8.0.3 lib/playbook/pb_kit_helper.rb