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

Function onPress

packages/dev/s2-docs/src/SearchMenuTrigger.tsx:328–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326
327export function SearchMenuButton(props: S2ButtonProps) {
328 let onPress = () => {
329 window.dispatchEvent(new CustomEvent('show-search-menu'));
330 };
331
332 return (
333 <S2Button

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected