mirror of
https://github.com/alice-lg/alice-lg.git
synced 2024-05-11 05:55:03 +00:00
24 lines
509 B
JavaScript
24 lines
509 B
JavaScript
import React from 'react'
|
|
import DebounceInput from 'react-debounce-input'
|
|
|
|
|
|
export default class DebouncedSearchInput extends React.Component {
|
|
render() {
|
|
return(
|
|
<div className="input-group">
|
|
<span className="input-group-addon">
|
|
<i className="fa fa-search"></i>
|
|
</span>
|
|
<DebounceInput
|
|
minLength={2}
|
|
debounceTimeout={250}
|
|
className="form-control"
|
|
{...this.props} />
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
|