MCPcopy Index your code
hub / github.com/adobe/react-spectrum / SearchMenuButton

Function SearchMenuButton

packages/dev/s2-docs/src/SearchMenuTrigger.tsx:327–344  ·  view source on GitHub ↗
(props: S2ButtonProps)

Source from the content-addressed store, hash-verified

325}
326
327export function SearchMenuButton(props: S2ButtonProps) {
328 let onPress = () => {
329 window.dispatchEvent(new CustomEvent('show-search-menu'));
330 };
331
332 return (
333 <S2Button
334 size="XL"
335 staticColor="white"
336 variant="secondary"
337 {...props}
338 onPress={onPress}
339 // @ts-ignore
340 onHoverStart={() => preloadSearchMenu()}>
341 Explore components
342 </S2Button>
343 );
344}

Callers

nothing calls this directly

Calls 1

preloadSearchMenuFunction · 0.85

Tested by

no test coverage detected