react-virtua-select
Version:
react-virtua-select
63 lines (46 loc) • 1.29 kB
Markdown
> react-virtua-select
[](https://www.npmjs.com/package/react-virtua-select) [](https://standardjs.com)
```bash
npm install --save react-virtua-select
```
Demo and playground are available [here](https://bonnv79.github.io/react-virtua-select/)
[](CHANGELOG.md)
```JavaScript
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} />
);
};
```
In the project directory, you can run:
Runs the app in the development mode.\
Open [http://localhost:6006](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.
MIT © [bonnv79](https://github.com/bonnv79)