Example:
import React from 'react';
import Search from 'react-search-item';
class MyComponent extends React.Component {
render() {
return (
<div>
<Search section_list={["title", "description"]}
highlight_color_text={"black"}
highlight_color_bg={"#21ce99"}
data={JSON}
/>
</div>
);
}
}
-
section_list
: Array, Required, list of each section you would like to include -
highlight_color_text
: String, Required, color of the highlight text -
highlight_color_bg
: String, Required, color of the highlight background -
data
: Object, Required, json data you want to pass