# svelte3-autocomplete

> Autocomplete text field using svelte3

Latest version **1.0.1** (published 2019-09-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install svelte3-autocomplete
pnpm add svelte3-autocomplete
yarn add svelte3-autocomplete
bun add svelte3-autocomplete
```

## 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.0.1 |
| Published | 2019-09-06 |
| First published | 2019-09-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 53.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Manoj Periathambi |
| Maintainers | manojp1988 |
| Keywords | svelte, autocomplete, async autocomplete |

## Links

- npm: https://www.npmjs.com/package/svelte3-autocomplete
- Repository: https://github.com/manojp1988/svelte3-autocomplete
- Homepage: https://github.com/manojp1988/svelte3-autocomplete#readme
- Issues: https://github.com/manojp1988/svelte3-autocomplete/issues
- npm.io page: https://npm.io/package/svelte3-autocomplete

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-09-06
- 1.0.0 — 2019-09-06

## README

# svelte3-autocomplete

This is a svelte3 library to create autocomplete text fields with both static and async support

To try this library, please run below commands in sequence.

```bash
npm install
npm run build:dev
```

Above commands build the app, to run the app, please install [http-server](https://www.npmjs.com/package/http-server) from npm.

```bash
   http-server dev/public/.
```

Then open the app at [localhost:8080](localhost:8080)

## Usage

Install the dependencies...

```html
<AutoComplete className="input" name="fruits" items="{names}" />
```

```html
<AutoComplete
  className="input"
  items="{names}"
  {isAsync}
  bind:this="{autoComplete}"
  on:input="{loadApiData}"
/>
```

In async case, you need to call this method to send data to the component.

```javascript
autoComplete.update(data.map(d => d.name));
```

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