react-combo-box-nato
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

React Combo-box

A flexible and easy accessible combo-box for the React JS. I've changed the original to work with objects

Install

npm install --save react-combo-box-nato

Usage

import React from 'react'
import ComboBox from 'react-combo-box-nato'
import 'react-combo-box-nato/dist/index.css'

const ComboBoxExample = () => {
  const data = [
    {
      id:'1',
      country: 'Brazil',
    },
    {
      id:'2',
      country: 'Argentina',
    },
  ];
  
  return  <ComboBox
      enableAutocomplete
      valueKey="country"
      options={data}
      onSelect={(e) => console.log(e)}
      renderOptions={(e) => <div>{e.country}</div>}
  />;
}

License

MIT © ashwinKumar0505

Package Sidebar

Install

npm i react-combo-box-nato

Weekly Downloads

4

Version

1.3.1

License

MIT

Unpacked Size

81.4 kB

Total Files

11

Last publish

Collaborators

  • natopedroso