Sha256: 7a3e9feec001e57f07fdbfb14457ce1757d7e5becd5a02e5a586cb35d58c5cd3

Contents?: true

Size: 393 Bytes

Versions: 7

Compression:

Stored size: 393 Bytes

Contents

<%= render(Primer::Beta::ButtonGroup.new) do |component| %>
  <% component.with_button { "Main menu" } %>
  <% component.with_menu_button(button_arguments: { "aria-label": "secondary menu" }, menu_arguments: { anchor_align: :end }) do |menu, button| %>
    <% menu.with_item(label: "Item 1", item_id: :item1) %>
    <% menu.with_item(label: "Item 2", item_id: :item2) %>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.25.0 previews/primer/beta/button_group_preview/with_menu_button.html.erb
openproject-primer_view_components-0.24.0 previews/primer/beta/button_group_preview/with_menu_button.html.erb
primer_view_components-0.21.0 previews/primer/beta/button_group_preview/with_menu_button.html.erb
primer_view_components-0.20.1 previews/primer/beta/button_group_preview/with_menu_button.html.erb
primer_view_components-0.20.0 previews/primer/beta/button_group_preview/with_menu_button.html.erb
openproject-primer_view_components-0.23.0 previews/primer/beta/button_group_preview/with_menu_button.html.erb
primer_view_components-0.19.0 previews/primer/beta/button_group_preview/with_menu_button.html.erb