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

Function InfoMenu

packages/react-aria-components/test/Menu.test.tsx:1779–1794  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

1777
1778 describe('portalContainer', () => {
1779 function InfoMenu(props) {
1780 return (
1781 <UNSAFE_PortalProvider getContainer={() => props.container.current}>
1782 <MenuTrigger>
1783 <Button aria-label="trigger" />
1784 <Popover>
1785 <Menu aria-label="Test">
1786 <MenuItem id="1">One</MenuItem>
1787 <MenuItem id="">Two</MenuItem>
1788 <MenuItem id="3">Three</MenuItem>
1789 </Menu>
1790 </Popover>
1791 </MenuTrigger>
1792 </UNSAFE_PortalProvider>
1793 );
1794 }
1795
1796 function App() {
1797 let container = React.useRef(null);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected