Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Latest commit

 

History

History
28 lines (22 loc) · 770 Bytes

searchbar.md

File metadata and controls

28 lines (22 loc) · 770 Bytes

Search Bar

Image of SearchBar

Usage

<SearchBar
  border
  placeholder={'Search'}
  onChange={input => this.setState({ input })} />
  
<SearchBar
  border
  iconPosition={'right'}
  placeholder={'Search'}
  onChange={input => this.setState({ input })} />

Props

prop default type required description
border false bool none determines border of the form text
iconPosition left left or right none position of the icon
placeholder Search string none placeholder of the form text
onChange none func optional function called when text is change
returnKeyType search string none return key type keyboard