Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/revolunet/react-fuzzy-input-text

A simple search widget, that autocomplete your text inputs.
https://github.com/revolunet/react-fuzzy-input-text

fuse fuzzy-search input reactjs select

Last synced: about 2 months ago
JSON representation

A simple search widget, that autocomplete your text inputs.

Awesome Lists containing this project

README

        

# react-fuzzy-input-text

[![npm package][npm-badge]][npm]

A simple [fuse.js](http://fusejs.io) based autocomplete widget.

![demo](./demo.gif)

## Features

- use the awesome [fuse.js](http://fusejs.io) fuzzy-search library
- up/down keys navigation

[Demo](http://revolunet.github.io/react-fuzzy-input-text)

## Usage

```js
import FuzzyInput from 'react-fuzzy-input-text'

const cities = require('./cities.json')

// optional fuse.js options
const fuseOptions = {
threshold: 0.5
}

return (
c.name) }
fuseOptions={ fuseOptions }
onChange={ item => alert(item) }
/>
)
```

[npm-badge]: https://img.shields.io/npm/v/react-fuzzy-input-text.png?style=flat-square
[npm]: https://www.npmjs.org/package/react-fuzzy-input-text