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

Function CloseButton

packages/dev/s2-docs/src/SearchMenu.tsx:57–67  ·  view source on GitHub ↗
({onClose}: {onClose: () => void})

Source from the content-addressed store, hash-verified

55}
56
57function CloseButton({onClose}: {onClose: () => void}) {
58 return (
59 <div style={{position: 'absolute', top: 8, right: 8}}>
60 <Provider values={[[OverlayTriggerStateContext, null]]}>
61 <ActionButton isQuiet onPress={onClose}>
62 <Close />
63 </ActionButton>
64 </Provider>
65 </div>
66 );
67}
68
69export function SearchMenu(props: SearchMenuProps) {
70 let {pages, currentPage} = useRouter();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected