1.2.1 • Published 2 months ago

@knadh/floatype v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

floatype.js

A super tiny Javascript autocomplete / autosuggestion library for rendering floating suggestion widgets in textareas. Zero dependencies and ~1200 bytes minified + gzipped.

View demo

demo

Usage

Node

npm install @knadh/floatype
import { floatype } from @knadh/floatype;

floatype(document.querySelector("textarea"), {
	onQuery: async (val) => {
		// fetch() or whatever that fetches/generates results.
		return ["results", "here"];
	}
});

Check the demo source to see advanced usage and basic CSS styles.

ES6 module

Check the demo source to use the lib in <script> directly on an HTML page.

For dropdown suggestions on input boxes, see autocomp.js

Licensed under the MIT License.

1.2.1

2 months ago

1.2.0

2 months ago

1.1.0

5 months ago

1.0.0

5 months ago

0.1.1

6 months ago

0.1.0

6 months ago