Skip to content

Commit

Permalink
update package name
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpablocruz committed Aug 21, 2021
1 parent 2fd0fbf commit a53a96d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# react-searchbox
react-searchbox is a simple component that implements a input that searches on change from a pool of elements provided to it by usign [needleman-js](https://github.com/juanpablocruz/needleman-wunsch-javascript) algorithm.
# react-searchbox-needleman
react-searchbox-needleman is a simple component that implements a input that searches on change from a pool of elements provided to it by usign [needleman-js](https://github.com/juanpablocruz/needleman-wunsch-javascript) algorithm.

## Installation

You can install this package by running the following command:
```bash
npm install react-searchbox
npm install react-searchbox-needleman
```

## Usage

In a React application use the react-searchbox components:
In a React application use the react-searchbox-needleman components:

```javascript
import SearchBox from 'react-searchbox';
import SearchBox from 'react-searchbox-needleman';

function App() {
const [value, setValue] = useState(null)
Expand All @@ -31,7 +31,7 @@ function App() {

## Configuration

react-searchbox accepts the following configuration options:
react-searchbox-needleman accepts the following configuration options:

- pool (required): an array of strings to search from.
- onSelect (required): the callback to be called when the user selects an option from the suggestions. ``(value: string):void ``
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "react-searchbox",
"name": "react-searchbox-needleman",
"version": "1.0.0",
"private": true,
"description": "React search box input with needleman-wunsch search",
"keywords": ["react", "search", "searchbox", "needleman-wunsch", "needleman"],
"author": "Juan Pablo Cruz <juanpablocruzmaseda@gmail.com>",
Expand Down

0 comments on commit a53a96d

Please sign in to comment.