# react-fuzzy-input-text

> A react input text component with fuzzy search

Latest version **1.1.0** (published 2017-08-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-fuzzy-input-text
pnpm add react-fuzzy-input-text
yarn add react-fuzzy-input-text
bun add react-fuzzy-input-text
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-08-23 |
| First published | 2017-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | revolunet |
| Keywords | react-component |

## Links

- npm: https://www.npmjs.com/package/react-fuzzy-input-text
- Repository: https://github.com/revolunet/react-fuzzy-input-text
- Homepage: https://github.com/revolunet/react-fuzzy-input-text#readme
- Issues: https://github.com/revolunet/react-fuzzy-input-text/issues
- npm.io page: https://npm.io/package/react-fuzzy-input-text

## Dependencies (2)

- [fuse.js](https://npm.io/package/fuse.js.md) ^3.0.5
- [fast-memoize](https://npm.io/package/fast-memoize.md) ^2.2.8

## Recent versions

- 1.1.0 (latest) — 2017-08-23
- 1.0.0 — 2017-03-07

## 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)


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

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

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

return (
  <FuzzyInput
    placeholder="Search city"
    items={ cities.map(c => 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

---
_Source: https://npm.io/package/react-fuzzy-input-text · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
