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
<action-menu data-select-variant="none" data-view-component="true">
<focus-group direction="vertical" mnemonics retain>
<button id="action-menu-c2ef5efa-1966-4cd7-950a-97ba7dfb1d9e-button" popovertarget="action-menu-c2ef5efa-1966-4cd7-950a-97ba7dfb1d9e-overlay" aria-controls="action-menu-c2ef5efa-1966-4cd7-950a-97ba7dfb1d9e-list" aria-haspopup="true" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Trigger</span>
</span>
</button>
<anchored-position id="action-menu-c2ef5efa-1966-4cd7-950a-97ba7dfb1d9e-overlay" anchor="action-menu-c2ef5efa-1966-4cd7-950a-97ba7dfb1d9e-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-c2ef5efa-1966-4cd7-950a-97ba7dfb1d9e-button" id="action-menu-c2ef5efa-1966-4cd7-950a-97ba7dfb1d9e-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 ActionListItem--disabled">
<button tabindex="-1" aria-disabled="true" id="item-1d3cce27-4814-4d83-bf88-e173fa543074" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Does something
</span>
</button>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem ActionListItem--disabled">
<a href="/" tabindex="-1" aria-disabled="true" id="item-b6ec343a-e43c-41ec-b51d-1715951c38ae" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Site
</span>
</a>
</li>
</ul>
</div>
</action-list>
</div>
</div>
</anchored-position> </focus-group>
</action-menu>
1
2
3
4
5
render(Primer::Alpha::ActionMenu.new) do |component|
component.with_show_button { "Trigger" }
component.with_item(label: "Does something", tag: :button, disabled: true)
component.with_item(label: "Site", tag: :a, href: "/", disabled: true)
end

No assets to display.