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

Function StandaloneModal

packages/react-aria-components/test/Dialog.test.js:561–567  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

559 let onEnter = jest.fn(() => enter.promise);
560 let onExit = jest.fn(() => exit.promise);
561 function StandaloneModal(props) {
562 return (
563 <Modal data-testid="modal" onEnter={onEnter} onExit={onExit} {...props}>
564 <Dialog aria-label="Modal">A modal</Dialog>
565 </Modal>
566 );
567 }
568
569 let {getByTestId, rerender} = render(<StandaloneModal isOpen />);
570 let modal = getByTestId('modal');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected