react-tachi-select
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

react-tachi-select

A React Select that works really well with a huge amount of data

NPM JavaScript Style Guide

Install

npm install --save react-tachi-select
-- OR --
yarn add react-tachi-select

Usage

import * as React from "react";

import ReactTachiSelect from "react-tachi-select";

class Example extends React.Component {
  state = {
    selectedValue: ""
  };

  handleChange = (value) => {
    this.setState({ selectedValue: value });
  };

  render() {
    const data = [
      {
        value: 1,
        label: "Option 1",
        searchable: "option 1"
      },
      {
        value: 2,
        label: "Option 2",
        searchable: "option 2"
      },
      {
        value: 3,
        label: "Option 3",
        searchable: "option 3"
      }
    ];
    return <ReactTachiSelect data={data} onChange={this.handleChange} />;
  }
}

License

MIT © gousta

Readme

Keywords

none

Package Sidebar

Install

npm i react-tachi-select

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

53.3 kB

Total Files

8

Last publish

Collaborators

  • pixarise