# ember-simple-typeahead

> A minimal typeahead component that tries its best not to make unfounded assumptions about your data.

Latest version **0.2.1** (published 2016-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-simple-typeahead
pnpm add ember-simple-typeahead
yarn add ember-simple-typeahead
bun add ember-simple-typeahead
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2016-12-05 |
| First published | 2016-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | jameslaneconkling |
| Keywords | ember-addon, typeahead, ember, input, form, autocomplete |

## Links

- npm: https://www.npmjs.com/package/ember-simple-typeahead
- Repository: https://github.com/jameslaneconkling/ember-simple-typeahead
- Homepage: https://github.com/jameslaneconkling/ember-simple-typeahead#readme
- Issues: https://github.com/jameslaneconkling/ember-simple-typeahead/issues
- npm.io page: https://npm.io/package/ember-simple-typeahead

## Dependencies (2)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.6
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^1.0.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2016-12-05
- 0.2.0 — 2016-10-14
- 0.1.0 — 2016-10-14
- 0.0.1 — 2016-10-13

## README

# Ember-simple-typeahead
A lightweight, highly functional typeahead component for select or autocomplete forms and the like.

Ember-simple-typeahead makes very few assumptions about what to display and when, relying instead on the developer to handle all application-domain logic like data fetching, formatting, and filtering.

The component has no external, non-ember dependencies.


## Installation

```bash
ember install ember-simple-typeahead
```


## Usage
```hbs
{{#typeahead-input
  value=userQueryString
  placeholder='Search for users...'
  items=systemUsers
  onValueChange=(action 'searchForSystemUsers')
  onItemEnter=(action 'addUserToWorkspace')
  as |input|
}}

  {{#input.message}}
    {{#if loadingSystemUsers}}
      <div class="loading-spinner-container">{{x-spinner color='#aaa' radius=4}}</div>
    {{else if loadingSystemUsersError}}
      <p class="warning">Error Loading Users</p>
    {{else if (eq systemUsers.length 0)}}
      <p>No users match the query <strong>{{userQueryString}}</strong></p>
    {{/if}}
  {{/input.message}}

  {{#input.list as |list|}}
    {{#list.item as |user|}}
      {{user.label}}
    {{/list.item}}
  {{/input.list}}

{{/typeahead-input}}
```

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