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
55
56
57
58
59
60
61
62
63
64
65
66
<action-menu data-select-variant="multiple" data-view-component="true"> <focus-group direction="vertical" mnemonics retain> <button id="action-menu-a0467934-8e64-4840-abb9-5155d0cb77fd-button" popovertarget="action-menu-a0467934-8e64-4840-abb9-5155d0cb77fd-overlay" aria-controls="action-menu-a0467934-8e64-4840-abb9-5155d0cb77fd-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-a0467934-8e64-4840-abb9-5155d0cb77fd-overlay" anchor="action-menu-a0467934-8e64-4840-abb9-5155d0cb77fd-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-a0467934-8e64-4840-abb9-5155d0cb77fd-button" id="action-menu-a0467934-8e64-4840-abb9-5155d0cb77fd-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap"> <li data-targets="action-list.items" data-item-id="katie" role="none" data-view-component="true" class="ActionListItem"> <button tabindex="-1" id="item-5cd97149-b099-4b47-b258-92ede43e7251" type="button" role="menuitemcheckbox" aria-checked="false" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-action--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check ActionListItem-singleSelectCheckmark"> <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path> </svg> </span> <span class="ActionListItem-visual ActionListItem-visual--leading"> <img role="presentation" src="https://avatars.githubusercontent.com/u/18661030?v=4" size="16" height="16" width="16" data-view-component="true" class="avatar avatar-small" /> </span> <span data-view-component="true" class="ActionListItem-descriptionWrap ActionListItem-descriptionWrap--inline"> <span data-view-component="true" class="ActionListItem-label"> langermank </span> <span data-view-component="true" class="ActionListItem-description">Katie Langerman</span> </span></button> </li> <li data-targets="action-list.items" data-item-id="jon" role="none" data-view-component="true" class="ActionListItem"> <button tabindex="-1" id="item-4325b1c5-5e5b-44a9-acd5-7a20aad3e7fa" type="button" role="menuitemcheckbox" aria-checked="false" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-action--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check ActionListItem-singleSelectCheckmark"> <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path> </svg> </span> <span class="ActionListItem-visual ActionListItem-visual--leading"> <img role="presentation" src="https://avatars.githubusercontent.com/u/54012?s=96&v=4" size="16" height="16" width="16" data-view-component="true" class="avatar avatar-small" /> </span> <span data-view-component="true" class="ActionListItem-descriptionWrap ActionListItem-descriptionWrap--inline"> <span data-view-component="true" class="ActionListItem-label"> jonrohan </span> <span data-view-component="true" class="ActionListItem-description">Jon Rohan</span> </span></button> </li> <li data-targets="action-list.items" data-item-id="armagan" role="none" data-view-component="true" class="ActionListItem"> <button tabindex="-1" id="item-f75cc2a8-196c-4d4a-a9ca-d45958dc2168" type="button" role="menuitemcheckbox" aria-checked="false" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-action--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check ActionListItem-singleSelectCheckmark"> <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path> </svg> </span> <span class="ActionListItem-visual ActionListItem-visual--leading"> <img role="presentation" src="https://avatars.githubusercontent.com/u/1446503?v=4" size="16" height="16" width="16" data-view-component="true" class="avatar avatar-small" /> </span> <span data-view-component="true" class="ActionListItem-descriptionWrap ActionListItem-descriptionWrap--inline"> <span data-view-component="true" class="ActionListItem-label"> broccolinisoup </span> <span data-view-component="true" class="ActionListItem-description">Armağan Ersöz</span> </span></button> </li> </ul> </div> </action-list> </div> </div> </anchored-position> </focus-group></action-menu>
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
render(Primer::Alpha::ActionMenu.new(select_variant: :multiple)) do |menu| menu.with_show_button { "Menu" } menu.with_avatar_item( src: "https://avatars.githubusercontent.com/u/18661030?v=4", username: "langermank", full_name: "Katie Langerman", full_name_scheme: :inline, avatar_arguments: { shape: :square }, item_id: :katie ) menu.with_avatar_item( src: "https://avatars.githubusercontent.com/u/54012?s=96&v=4", username: "jonrohan", full_name: "Jon Rohan", full_name_scheme: :inline, avatar_arguments: { shape: :square }, item_id: :jon ) menu.with_avatar_item( src: "https://avatars.githubusercontent.com/u/1446503?v=4", username: "broccolinisoup", full_name: "Armağan Ersöz", full_name_scheme: :inline, avatar_arguments: { shape: :square }, item_id: :armagan )end
No notes provided.
No params configured.
No assets to display.