property SearchBarProps.onSubmit

Called with the trimmed query, never an empty one.

Type

(q: string) => void

Usage

import { type SearchBarProps } from "src/components/layout/SearchBar.tsx";