SearchBar
SearchBar renders an input box for queries and a Search button.
As default behavior, the search can be triggered clicking on the button or pressing the enter keystroke.
Usage
<SearchBar placeholder="Enter any keyword" />
Props
placeholder
StringoptionalThe placeholder value of the search box. Default value:
Type something.overridableId
StringoptionalAn optional string to define a specific overridable id.
Usage when overriding
const MySearchBar = ({ queryString, onBtnSearchClick, onInputChange, onKeyPress, placeholder, actionProps, uiProps }) => {
  ...
}
const overriddenComponents = {
  "SearchBar.element": MySearchBar
};
Parameters
placeholder
StringThe prop
placeholderdefined when using the component.queryString
StringThe current value of the
queryStringquerystate.onInputChange
FunctionA function to be called every time the user changes the query string to change the
querystate.onInputChange(queryString)onBtnSearchClick
FunctionA function to be called when the user clicks on the the search button.
onKeyPress
FunctionA function to be called on key press to handle the Enter button pressed.
actionProps
ObjectSemantic-UI props for the action button.
uiProps
ObjectSemantic-UI props for the search bar.