Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-combo-box-nato

Codebrahma19MIT1.3.1TypeScript support: included

Easy and Responsive Combo-box

react, react-component, combo-box, react-combo-box, react-combobox, select, autocomplete, react-autocomplete, dropdown, react-dropdown

readme

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