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

Function Modal

starters/tailwind/src/Modal.tsx:30–38  ·  view source on GitHub ↗
(props: ModalOverlayProps)

Source from the content-addressed store, hash-verified

28});
29
30export function Modal(props: ModalOverlayProps) {
31 return (
32 <ModalOverlay {...props} className={overlayStyles}>
33 <div className="sticky top-0 left-0 w-full h-(--visual-viewport-height) flex items-center justify-center box-border">
34 <RACModal {...props} className={modalStyles} />
35 </div>
36 </ModalOverlay>
37 );
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected