cahcnc91-autocomplete

1.0.14 • Public • Published

Autocomplete Component

Installation

Run npm install --save cahcnc91-autocomplete

Usage

Provide a options array, each item should be an object with a label property.

import React, { Component } from "react";
import Autocomplete from "cahcnc91-autocomplete";

const languages = [
    {
      id: 1,
      label: "C"
    },
    {
      id: 2,
      label: "C#"
    },
    {
        id: 3,
        label: "JavaScript"
    }
  ];

class Example extends Component {
  render() {
    return (
      <Autocomplete options={languages}/>
    );
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i cahcnc91-autocomplete

Weekly Downloads

1

Version

1.0.14

License

MIT

Unpacked Size

94.6 kB

Total Files

20

Last publish

Collaborators

  • cahcnc91