Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<action-menu data-select-variant="none" data-view-component="true">
<focus-group direction="vertical" mnemonics retain>
<button id="action-menu-3d871d9e-0c13-4d1c-93ea-fc9cd2e2ec77-button" popovertarget="action-menu-3d871d9e-0c13-4d1c-93ea-fc9cd2e2ec77-overlay" aria-controls="action-menu-3d871d9e-0c13-4d1c-93ea-fc9cd2e2ec77-list" aria-haspopup="true" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Menu</span>
</span>
</button>
<anchored-position id="action-menu-3d871d9e-0c13-4d1c-93ea-fc9cd2e2ec77-overlay" anchor="action-menu-3d871d9e-0c13-4d1c-93ea-fc9cd2e2ec77-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true" class="Overlay-body Overlay-body--paddingNone"> <action-list>
<div data-view-component="true">
<ul aria-labelledby="action-menu-3d871d9e-0c13-4d1c-93ea-fc9cd2e2ec77-button" id="action-menu-3d871d9e-0c13-4d1c-93ea-fc9cd2e2ec77-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-0dcbf4a2-242c-4849-8a04-e407e8758f15" type="button" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Copy link
</span>
</button>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-b0bf8ea6-2633-41b3-b61c-1f9dfb7f85df" type="button" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Quote reply
</span>
</button>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-080a33c3-e5af-45b6-8c6f-7edd71b18520" type="button" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Reference in new issue
</span>
</button>
</li>
<li role="presentation" aria-hidden="true" data-view-component="true" class="ActionList-sectionDivider"></li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-28c4b693-41ca-4bb0-8ae3-3af50877b2c1" type="button" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Edit
</span>
</button>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem--danger ActionListItem">
<button tabindex="-1" id="item-4ea8042a-ec49-4759-82a8-2c982d9a41f1" type="button" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Delete
</span>
</button>
</li>
</ul>
</div>
</action-list>
</div>
</div>
</anchored-position> </focus-group>
</action-menu>
1
2
3
4
5
6
7
8
9
render(Primer::Alpha::ActionMenu.new(select_variant: select_variant, anchor_align: anchor_align, anchor_side: anchor_side, size: size)) do |menu|
menu.with_show_button { "Menu" }
menu.with_item(label: "Copy link")
menu.with_item(label: "Quote reply")
menu.with_item(label: "Reference in new issue")
menu.with_divider
menu.with_item(label: "Edit")
menu.with_item(label: "Delete", scheme: :danger)
end
Param Description Input

No assets to display.