Sha256: 760f5f641b27c0e5189a11cc93af0d9d9fe8238b60488ffb129c3d1c584d36b7

Contents?: true

Size: 757 Bytes

Versions: 14

Compression:

Stored size: 757 Bytes

Contents

<%= render(Primer::FlexComponent.new(**@system_arguments)) do %>
  <% if @side == :left %>
    <%= render Primer::BaseComponent.new(tag: :div, classes: "flex-shrink-0", col: (@responsive ? [12, nil, @sidebar_col] : @sidebar_col), mb: (@responsive ? [4, nil, 0] : nil)) do %>
      <%= sidebar %>
    <% end %>
  <% end %>

  <%= render Primer::BaseComponent.new(tag: :div, classes: "flex-shrink-0", col: (@responsive ? [12, nil, @main_col] : @main_col), mb: (@responsive ? [4, nil, 0] : nil)) do %>
    <%= main %>
  <% end %>

  <% if @side == :right %>
    <%= render Primer::BaseComponent.new(tag: :div, classes: "flex-shrink-0", col: (@responsive ? [12, nil, @sidebar_col] : @sidebar_col)) do %>
      <%= sidebar %>
    <% end %>
  <% end %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
primer_view_components-0.0.26 app/components/primer/layout_component.html.erb
primer_view_components-0.0.25 app/components/primer/layout_component.html.erb
primer_view_components-0.0.24 app/components/primer/layout_component.html.erb
primer_view_components-0.0.23 app/components/primer/layout_component.html.erb
primer_view_components-0.0.22 app/components/primer/layout_component.html.erb
primer_view_components-0.0.21 app/components/primer/layout_component.html.erb
primer_view_components-0.0.20 app/components/primer/layout_component.html.erb
primer_view_components-0.0.19 app/components/primer/layout_component.html.erb
primer_view_components-0.0.18 app/components/primer/layout_component.html.erb
primer_view_components-0.0.17 app/components/primer/layout_component.html.erb
primer_view_components-0.0.16 app/components/primer/layout_component.html.erb
primer_view_components-0.0.15 app/components/primer/layout_component.html.erb
primer_view_components-0.0.14 app/components/primer/layout_component.html.erb
primer_view_components-0.0.13 app/components/primer/layout_component.html.erb