Sha256: 12946c30386a501176b2546d58f835f5d0d81afc1de9305c85e821fa081dd66f

Contents?: true

Size: 747 Bytes

Versions: 9

Compression:

Stored size: 747 Bytes

Contents

<%= render(Primer::FlexComponent.new(**@kwargs)) 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

9 entries across 9 versions & 1 rubygems

Version Path
primer_view_components-0.0.12 app/components/primer/layout_component.html.erb
primer_view_components-0.0.11 app/components/primer/layout_component.html.erb
primer_view_components-0.0.10 app/components/primer/layout_component.html.erb
primer_view_components-0.0.9 app/components/primer/layout_component.html.erb
primer_view_components-0.0.8 app/components/primer/layout_component.html.erb
primer_view_components-0.0.7 app/components/primer/layout_component.html.erb
primer_view_components-0.0.6 app/components/primer/layout_component.html.erb
primer_view_components-0.0.5 app/components/primer/layout_component.html.erb
primer_view_components-0.0.4 app/components/primer/layout_component.html.erb