Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

react-awesomplete-tagger

0.0.1 • Public • Published

react-awesomplete-tagger

demo

npm i react-awesomplete-tagger

Usage

First:

<link rel="stylesheet" href="awesomplete.css">
<script src="awesomplete.min.js"></script>
<script src="react-awesomplete-tagger.min.js"></script>

Second, create an AwesompleteTagger component w/ a 2 predifined competions:

<AwesompleteTagger completions={() => Promise.resolve(['foo', 'bar'])} />

Props:

  • completions: (required) expects a fn that returns a promise
  • opt: an options hash that gets passed down to Awesomplete
  • debounce: default is 200 (ms)

See demo.* files.

Compile an UMD

# npm i -g rollup terser adieu
$ npm i
$ make

Results are expected in dist/.

License

MIT.

Install

npm i react-awesomplete-tagger

DownloadsWeekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

24.4 kB

Total Files

7

Last publish

Collaborators

  • avatar