1.2.0 • Published 3 years ago

react-tachi-select v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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

1.2.0

3 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.0.0

6 years ago