Props for SearchPage.
const props: SearchPageProps = { onSearch: (q) => runSearch(q), onDrawerToggle: () => openDrawer(),}; Copy
const props: SearchPageProps = { onSearch: (q) => runSearch(q), onDrawerToggle: () => openDrawer(),};
interface SearchPageProps { /** Called with the submitted query; the page then navigates to `/results`. */ onSearch: (query: string) => void; /** Opens the settings/advanced drawer (settings gear + advanced button). */ onDrawerToggle: () => void;} Copy
interface SearchPageProps { /** Called with the submitted query; the page then navigates to `/results`. */ onSearch: (query: string) => void; /** Opens the settings/advanced drawer (settings gear + advanced button). */ onDrawerToggle: () => void;}
Called with the submitted query; the page then navigates to /results.
/results
Opens the settings/advanced drawer (settings gear + advanced button).
Props for SearchPage.
Example
Source