autocomplete-textfield
v1.0.0
Published
Autocomplete package
Downloads
7
Readme
Installation
If you want to use the library in browser:
npm install autocomplete-textfield
Then import it into your javascript code:
import autocomplete from 'autocomplete-textfield';
// or
var autocomplete = require('autocomplete-textfield');
Props
You can pass JSON data like below:
const countries = [
{ code: "IN", label: "India", phone: "91" },
{ code: "NZ", label: "New Zealand", phone: "64" },
{ code: "ES", label: "Spain", phone: "34" },
{ code: "US", label: "United States", phone: "1"},
];