react-searchbar-v0

0.1.1 • Public • Published

react-searchbar-v0

A search bar made with react, given a list it filters the list on text input in the search bar.

To see it in action run:

npm run storybook

Props:

list :-> List to use as items to search from.

listId :-> Unique id in list.

listItemName :-> Name of attribute which you will be searching.

onItemClick :-> Function to pass which will get id and name of item on select.

placeholder :-> Search Placeholder.

noOptions :-> Message to appear if no filtered result.

minLength :-> Minimum length afer which search result will activate.

All props have default values.

To do:

Add loader in search bar mean while list is loaded. Pass custom styles to search bar.

/react-searchbar-v0/

    Package Sidebar

    Install

    npm i react-searchbar-v0

    Weekly Downloads

    1

    Version

    0.1.1

    License

    none

    Unpacked Size

    34.3 kB

    Total Files

    21

    Last publish

    Collaborators

    • piyush96arora1