terra-search-field
Version:
A search component with a field that automatically performs a search callback after user input.
32 lines (20 loc) • 1.03 kB
Markdown
A search component with a field that automatically performs a search callback after user input.
- Install with [npmjs](https://www.npmjs.com):
- `npm install terra-search-field`
```jsx
import React from 'react';
import SearchField from 'terra-search-field';
// Search Field with placeholder
<SearchField placeholder="Search" />
// Search Field with callback function and delay
<SearchField searchDelay={500} onSearch={(searchText) => { console.log(searchText); }} />
// Search Field with callback function and minimum search text length
<SearchField minimumSearchTextLength={5} onSearch={(searchText) => { console.log(searchText); }} />
```
* [Cross-Browser Support](https://github.com/cerner/terra-core/wiki/Component-Features#cross-browser-support)
* [Responsive Support](https://github.com/cerner/terra-core/wiki/Component-Features#responsive-support)
* [Mobile Support](https://github.com/cerner/terra-core/wiki/Component-Features#mobile-support)