1.0.6 • Published 7 years ago
colby-react-search-input v1.0.6
colby-react-search-input
An input component for React apps.
Install
npm install --save colby-react-search-input
Props
Types
handleSearchTermChange: PropTypes.func.isRequired,
searchTerm: PropTypes.string.isRequired,
fetching: PropTypes.bool,
id: PropTypes.string,
placeholderText: PropTypes.string,
Defaults
fetching: false,
id: Math.random().toString(36).substr(2, 5), // Random string.
placeholderText: 'Search',