@spicycoding/vue-auto-suggest

1.0.2 • Public • Published

This vue component displays suggestions based on the current value of the input field.

How to install
Install using NPM: npm install @spicycoding/vue-auto-suggest
Install using Yarn: yarn add @spicycoding/vue-auto-suggest

Important note This package assumes that you have installed these packages:

  • font-awesome
  • tailwindcss

How to use

import autoSuggest from '@spicycoding/vue-auto-suggest';

new Vue({
    components: {
        'auto-suggest': autoSuggest,
    },
});
<auto-suggest placeholder="What are you searching for?" :value="''" :on-input="myMethod" :options="['Netherlands', 'Belgium', 'Germany', 'Italy']"></auto-suggest>

In your own application, create a method that accepts one parameter:

myMethod(response) {
    console.log(response);
}

Dependents (0)

Package Sidebar

Install

npm i @spicycoding/vue-auto-suggest

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

8 kB

Total Files

3

Last publish

Collaborators

  • spicycoding