Sha256: e1d5f9c524a17a2f8992a3efda968ee0a4c606ebfb5b064a92ed6481cc61fc5f

Contents?: true

Size: 802 Bytes

Versions: 25

Compression:

Stored size: 802 Bytes

Contents

<%=
  render(Primer::Alpha::Layout.new) do |component|
    component.with_main do
      "Main content"
    end

    component.with_sidebar(row_placement: :start, col_placement: :end) do
      render(Primer::OpenProject::SidePanel.new) do |panel|
        panel.with_section do |section|
          section.with_title { "Attributes" }
          section.with_counter(count: counter)
          section.with_description { description } if show_description

          section.with_action_icon(icon: :pencil, 'aria-label': 'Edit') if show_action
          section.with_footer_button(tag: :a, href: '#') do |button|
            button.with_leading_visual_icon(icon: :pencil)
            "Additional action"
          end if show_footer_action

          "Section content"
        end
      end
    end
  end
%>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
openproject-primer_view_components-0.39.1 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.39.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.38.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.37.1 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.37.0 previews/primer/open_project/side_panel_preview/playground.html.erb