Sha256: 952831d4567e4acfbc5b383a750b281ccdac135b113285d6a9d6b2dddc682ba5

Contents?: true

Size: 623 Bytes

Versions: 7

Compression:

Stored size: 623 Bytes

Contents

# frozen_string_literal: true

module Primer
  # @label LayoutComponent
  class LayoutComponentPreview < ViewComponent::Preview
    # @label Default Options
    #
    # @param responsive [Boolean]
    # @param side [Symbol] select [left, right]
    # @param sidebar_col [Integer] select [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
    def default(responsive: false, side: :right, sidebar_col: 3)
      render(Primer::LayoutComponent.new(responsive: responsive, side: side, sidebar_col: sidebar_col)) do |component|
        component.with_main { "Main" }
        component.with_sidebar { "Sidebar" }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
primer_view_components-0.0.104 previews/primer/layout_component_preview.rb
primer_view_components-0.0.103 previews/primer/layout_component_preview.rb
primer_view_components-0.0.102 previews/primer/layout_component_preview.rb
primer_view_components-0.0.101 previews/primer/layout_component_preview.rb
primer_view_components-0.0.100 previews/primer/layout_component_preview.rb
primer_view_components-0.0.99 previews/primer/layout_component_preview.rb
primer_view_components-0.0.98 previews/primer/layout_component_preview.rb