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

Function ModalDOM

packages/react-aria/test/overlays/useModal.test.js:17–24  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

15import {render} from '@react-spectrum/test-utils-internal';
16
17function ModalDOM(props) {
18 let {modalProps} = useModal();
19 return (
20 <div data-testid={props.modalId || 'modal'} {...modalProps}>
21 {props.children}
22 </div>
23 );
24}
25
26function Modal(props) {
27 return (

Callers

nothing calls this directly

Calls 1

useModalFunction · 0.90

Tested by

no test coverage detected