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

Function OverlayContainerDOM

packages/react-aria/src/overlays/useModal.tsx:98–101  ·  view source on GitHub ↗

* Creates a root node that will be aria-hidden if there are other modals open.

(props: ModalProviderProps)

Source from the content-addressed store, hash-verified

96 * Creates a root node that will be aria-hidden if there are other modals open.
97 */
98function OverlayContainerDOM(props: ModalProviderProps) {
99 let {modalProviderProps} = useModalProvider();
100 return <div data-overlay-container {...props} {...modalProviderProps} />;
101}
102
103/**
104 * An OverlayProvider acts as a container for the top-level application.

Callers

nothing calls this directly

Calls 1

useModalProviderFunction · 0.85

Tested by

no test coverage detected