ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Props for SearchPage.

    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;
    }
    interface SearchPageProps {
        onSearch: (query: string) => void;
        onDrawerToggle: () => void;
    }
    Index

    Properties

    onSearch: (query: string) => void

    Called with the submitted query; the page then navigates to /results.

    onDrawerToggle: () => void

    Opens the settings/advanced drawer (settings gear + advanced button).