Sha256: 02b18fdd405bcb66e6800e3caae559ac140b83648e2e735b20d0100fb9eb1923
Contents?: true
Size: 978 Bytes
Versions: 8
Compression:
Stored size: 978 Bytes
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 && with_leading_action != :none %> <%= header.with_breadcrumbs(breadcrumb_items) %> <% if with_actions %> <% header.with_action_icon_button(icon: 'pencil', mobile_icon: 'pencil', label: 'Edit') %> <% header.with_action_menu(menu_arguments: { anchor_align: :end }, button_arguments: { icon: "op-kebab-vertical", "aria-label": "Menu" }) do |menu, button| %> <% menu.with_item(label: "Subitem 1") do |item| %> <% item.with_leading_visual_icon(icon: :unlock) %> <% end %> <% menu.with_item(label: "Subitem 2", scheme: :danger) do |item| %> <% item.with_leading_visual_icon(icon: :trash) %> <% end %> <% end %> <% end %> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems