MCPcopy Create free account
hub / github.com/adobe/react-spectrum / MenuExample

Function MenuExample

packages/@react-spectrum/s2/test/Menu.browser.test.tsx:32–41  ·  view source on GitHub ↗
({onAction})

Source from the content-addressed store, hash-verified

30];
31
32function MenuExample({onAction}) {
33 return (
34 <MenuTrigger>
35 <Button>Open</Button>
36 <Menu aria-label="Test" items={items} onAction={onAction}>
37 {item => <MenuItem id={item.id}>{item.name}</MenuItem>}
38 </Menu>
39 </MenuTrigger>
40 );
41}
42
43// Flaky in CI. Getting Error: Expected focus after selecting an option to move away from the option.
44it.skip.each`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected