MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / MobileSearch

Function MobileSearch

src/components/Search.tsx:489–507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

487}
488
489export function MobileSearch() {
490 let { buttonProps, dialogProps } = useSearchProps()
491
492 return (
493 <div className="contents lg:hidden">
494 <button
495 type="button"
496 className="flex h-6 w-6 items-center justify-center rounded-md transition hover:bg-zinc-900/5 ui-not-focus-visible:outline-none lg:hidden dark:hover:bg-white/5"
497 aria-label="Find something..."
498 {...buttonProps}
499 >
500 <SearchIcon className="h-5 w-5 stroke-zinc-900 dark:stroke-white" />
501 </button>
502 <Suspense fallback={null}>
503 <SearchDialog className="lg:hidden" {...dialogProps} />
504 </Suspense>
505 </div>
506 )
507}

Callers

nothing calls this directly

Calls 1

useSearchPropsFunction · 0.85

Tested by

no test coverage detected