https://github.com/yuriko627/incremental-search
https://github.com/yuriko627/incremental-search
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuriko627/incremental-search
- Owner: yuriko627
- Created: 2021-06-07T12:49:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T15:37:40.000Z (over 4 years ago)
- Last Synced: 2025-03-18T13:08:40.099Z (8 months ago)
- Language: TypeScript
- Size: 6.58 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# incremental-searchbox-react-component
Search with a keyword and some of the closest results (using fuzzy search) will show.

[](https://www.npmjs.com/package/incremental-search) [](https://standardjs.com)
## Install
```bash
npm install --save incremental-search
```
## Usage
With React Component
```tsx
import React, { Component } from 'react'
import IncrementalSearchBox from 'incremental-search'
import 'incremental-search/dist/index.css'
class Example extends Component {
render() {
return
}
}
```
With React hooks
```tsx
import React, { useState } from 'react'
import IncrementalSearchBox from 'incremental-search'
export default function App() {
const [selectedOption, setSelectedOption] = useState(null)
const [coins, setCoins] = React.useState([])
return (
)
}
```
## Running Example in Local

```
npm start
```
open a different tab
```
cd example
npm start
```
## License
MIT © [yuriko627](https://github.com/yuriko627)