% Auto-generated: do not edit by hand
\name{globalSearchBar}

\alias{globalSearchBar}

\title{GlobalSearchBar component}

\description{
Component for rendering advanced search interfaces for data in an API Renders results in a data table alongside a set of filters that map to properties in the data.
}

\usage{
globalSearchBar(apiKey=NULL, autocompleteFormulaUrl=NULL,
hidePeriodicTable=NULL, placeholder=NULL,
redirectRoute=NULL, tooltip=NULL)
}

\arguments{
\item{apiKey}{Character. API key (if needed) that will be used to hit the autocomplete route}

\item{autocompleteFormulaUrl}{Character. Optional URL endpoint for fetching formula autocompletion results
e.g. "https://api.materialsproject.org/materials/formula_autocomplete/"}

\item{hidePeriodicTable}{Logical. Boolean flag for showing/hiding the periodic table on initial load}

\item{placeholder}{Character. Optionally add a string of text to show up in the top-level search bar}

\item{redirectRoute}{Character. The route (minus the query params) that submissions should redirect to}

\item{tooltip}{Character. Optionally add a help icon with a tooltip in the search bar
This should be used to provide instructions on how to use the search bar
e.g.
 'Type in a comma-separated list of element symbols (e.g. Ga, N),
 a chemical formula (e.g. C3N), or a material id (e.g. mp-10152).
 You can also click elements on the periodic table to add them to your search.'}
}

\value{named list of JSON elements corresponding to React.js properties and their values}

