@ptadmin/searchbar
v1.0.14
Published
Component to display a simple search bar
Downloads
3
Keywords
Readme
SearchBar
Searchbar is a component that renders a simple text input field with a search icon
Usage
import SearchBar from '@ptadmin/searchbar';
<SearchBar />;
Props
searchRequest (function ()): Function calle when user make a search minChars (intager): The minumum number of characters allowed to be searched liveSearch (boolean): Whether or not the it will autosesrch on type searchDelay (intager): The amout of time(milliseconds) of a pause between typing and search placeholder (string): The placeholder on the search bar, only visible when nothing is typed