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.49.1 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.49.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.48.2 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.48.1 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.48.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.47.1 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.47.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.46.1 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.46.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.45.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.44.3 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.44.2 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.44.1 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.44.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.43.1 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.43.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.42.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.41.1 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.41.0 previews/primer/open_project/side_panel_preview/playground.html.erb
openproject-primer_view_components-0.40.0 previews/primer/open_project/side_panel_preview/playground.html.erb