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
<action-menu data-select-variant="none" data-view-component="true"> <focus-group direction="vertical" mnemonics retain> <button id="action-menu-2b51397d-7bca-42fb-aa93-201388bfaa18-button" popovertarget="action-menu-2b51397d-7bca-42fb-aa93-201388bfaa18-overlay" aria-controls="action-menu-2b51397d-7bca-42fb-aa93-201388bfaa18-list" aria-haspopup="true" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content"> <span class="Button-label">Options</span> </span> <span class="Button-visual Button-trailingAction"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-triangle-down"> <path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path> </svg> </span> </button> <anchored-position data-target="action-menu.overlay" id="action-menu-2b51397d-7bca-42fb-aa93-201388bfaa18-overlay" anchor="action-menu-2b51397d-7bca-42fb-aa93-201388bfaa18-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 Overlay--fullscreen-whenNarrow"> <div data-view-component="true" class="Overlay-body Overlay-body--paddingNone"> <action-list> <div data-view-component="true"> <ul aria-labelledby="action-menu-2b51397d-7bca-42fb-aa93-201388bfaa18-button" id="action-menu-2b51397d-7bca-42fb-aa93-201388bfaa18-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-81dfae0a-473c-40f0-91df-bb5dbbdc646e" type="button" role="menuitem" data-view-component="true" class="ActionListContent"> <span data-view-component="true" class="ActionListItem-descriptionWrap"> <span data-view-component="true" class="ActionListItem-label"> Edit profile </span> <span data-view-component="true" class="ActionListItem-description">Update your profile information</span> </span></button> </li> <li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <button tabindex="-1" id="item-c13a9e0c-0468-488c-9d84-fa621e91c911" type="button" role="menuitem" data-view-component="true" class="ActionListContent"> <span data-view-component="true" class="ActionListItem-descriptionWrap"> <span data-view-component="true" class="ActionListItem-label"> Settings </span> <span data-view-component="true" class="ActionListItem-description">Configure your preferences</span> </span></button> </li> <li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <button tabindex="-1" id="item-659d626c-3183-4564-befd-5e52c826de44" type="button" role="menuitem" data-view-component="true" class="ActionListContent"> <span data-view-component="true" class="ActionListItem-descriptionWrap"> <span data-view-component="true" class="ActionListItem-label"> Notifications </span> <span data-view-component="true" class="ActionListItem-description">Manage notification settings</span> </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--danger ActionListItem"> <button tabindex="-1" id="item-34b3ca74-a605-4301-b135-33ccd35efa6f" type="button" role="menuitem" data-view-component="true" class="ActionListContent"> <span data-view-component="true" class="ActionListItem-descriptionWrap"> <span data-view-component="true" class="ActionListItem-label"> Sign out </span> <span data-view-component="true" class="ActionListItem-description">Log out of your account</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
render(Primer::Alpha::ActionMenu.new(anchor_when_narrow: :fullscreen)) do |menu| menu.with_show_button do |button| button.with_trailing_action_icon(icon: :"triangle-down") "Options" end menu.with_item(label: "Edit profile") do |item| item.with_description.with_content("Update your profile information") end menu.with_item(label: "Settings") do |item| item.with_description.with_content("Configure your preferences") end menu.with_item(label: "Notifications") do |item| item.with_description.with_content("Manage notification settings") end menu.with_divider menu.with_item(label: "Sign out", scheme: :danger) do |item| item.with_description.with_content("Log out of your account") endendNo notes provided.
No params configured.
No assets to display.