Sha256: 5a3c8f7db434d91a166106b642010d47da521f97d0428400120c9779b25bb2f3
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
<%= render Primer::OpenProject::PageHeader.new do |header| %> <%= header.with_title(variant: variant) { title } %> <%= header.with_description { description } %> <%= header.with_leading_action(icon: with_leading_action, href: '#', 'aria-label': "A leading action") if with_leading_action %> <%= header.with_breadcrumbs(breadcrumb_items) if with_breadcrumbs %> <%= header.with_parent_link(href: "#") { "Parent link" } if with_parent_link %> <% if with_actions %> <% header.with_action do %> <%= render(Primer::Alpha::ActionMenu.new) do |component| %> <% component.with_show_button { "Menu" } %> <% component.with_item(label: "Item", tag: :button, value: "") %> <% component.with_item( label: "Show dialog", tag: :button, content_arguments: { "data-show-dialog-id": "my-dialog" }, value: "", scheme: :danger ) %> <% end %> <% end %> <% end %> <% if with_context_bar_actions %> <% header.with_context_bar_action do %> <%= render(Primer::Beta::IconButton.new( scheme: :default, size: :small, icon: "pencil", "aria-label": "A meaningful label" )) %> <% end %> <% end %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openproject-primer_view_components-0.24.0 | previews/primer/open_project/page_header_preview/playground.html.erb |