react-virtua-select

1.1.1 • Public • Published

react-virtua-select

react-virtua-select

NPM JavaScript Style Guide

Install

npm install --save react-virtua-select

Demo

Demo and playground are available here

Versions

CHANGELOG

Usage Example

import React from 'react';
import VirtualizedSelect from 'react-virtua-select';

const options = [
  {
    value: 'item-1',
    label: 'item 1',
  },
   {
    value: 'item-2',
    label: 'item 2',
  },
   {
    value: 'item-3',
    label: 'item 3',
  }
];

const Demo = () => {
  const [value, setValue] = React.useState('');
  return (
    <VirtualizedSelect options={options} value={value} onChange={setValue} />
  );
};

Develop

In the project directory, you can run:

npm install

npm start

Runs the app in the development mode.
Open http://localhost:6006 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

License

MIT © bonnv79

Package Sidebar

Install

npm i react-virtua-select

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

22.8 kB

Total Files

8

Last publish

Collaborators

  • ngovanbon16