Components

SearchField

<SearchField onChange onSubmit value placeholder aria-label className />

Constructor

# <SearchField onChange onSubmit value placeholder aria-label className />

Search input field based on @material-ui.

PropTypes:
Name Type Required Description Default
onChange func No Callback when input text has changed () => {}
onSubmit func No Callback when input was submitted. If missing, submit button will be omitted.
value string No Value to be assigned to the input field.
placeholder string Yes Placeholder text shown when input field is empty.
aria-label string No Label used to improve accessibility.
className string No Additional class applied to the outermost box.

View Source components/searchField.js, line 37