# react-select-virtualized

> Select virtualized component using: react-select v4 + react-virtualized + react hooks

Latest version **5.6.0** (published 2024-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-select-virtualized
pnpm add react-select-virtualized
yarn add react-select-virtualized
bun add react-select-virtualized
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.6.0 |
| Published | 2024-07-09 |
| First published | 2019-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 2 |
| Unpacked size | 39.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 164 |
| Author | guiyep |
| Maintainers | guiyep |
| Keywords | react, select, virtualized, hooks, react hooks, performance, big |

## Links

- npm: https://www.npmjs.com/package/react-select-virtualized
- Repository: https://github.com/guiyep/react-select-virtualized
- Homepage: https://github.com/guiyep/react-select-virtualized#readme
- Issues: https://github.com/guiyep/react-select-virtualized/issues
- npm.io page: https://npm.io/package/react-select-virtualized

## Dependencies (2)

- [lodash.debounce](https://npm.io/package/lodash.debounce.md) 4.0.8
- [regenerator-runtime](https://npm.io/package/regenerator-runtime.md) ^0.13.9

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 5.6.0 (latest) — 2024-07-09
- 5.5.1 — 2023-10-16
- 5.5.0 — 2023-07-12
- 5.4.0 — 2023-07-12
- 5.3.0 — 2022-12-08
- 5.2.0 — 2022-01-11
- 5.1.2 — 2022-01-11
- 5.1.1 — 2022-01-11
- 5.1.0 — 2022-01-05
- 4.2.0 — 2021-10-30
- 4.1.0 — 2021-10-19
- 4.0.0 — 2021-10-19
- 3.5.0 — 2021-08-08
- 3.4.0 — 2021-07-10
- 3.3.0 — 2021-07-10
- … 95 more at https://npm.io/package/react-select-virtualized/versions

## README

# react-select-virtualized

<p align="center">
  <img src="./logo.png?raw=true">
</p>
<p align="center">
  <a href="https://www.npmjs.com/package/react-select-virtualized">
    <img src="https://img.shields.io/npm/v/react-select-virtualized.svg">
  </a>
  <img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg">
  <img src="https://img.shields.io/bundlephobia/minzip/react-select-virtualized">
</p>

> react-select v5 + react-virtualized + react hooks!

This project came up after hours of trying to find an autocomplete component that supports large sets of data to be displayed and searched for while maintain performance. The only libraries out there that allow this functionality are either not maintained anymore, use outdated libraries or are poorly performant.
I created a component that uses the Airbnb library called `react-virtualized` for the virtual data loading of elements and plugged it to the `react-select` (the most used autocomplete library for react) menu list.

![Alt Text](https://imagizer.imageshack.com/img922/7402/CSd9cM.gif)

## Install

```bash
yarn add react-select-virtualized
```

### Peer Dependencies

```bash
{
    "react",
    "react-dom",
    "react-virtualized",
    "react-select"
}
```

## API Documentation

You can check the full library documentation [here](https://deluxe-blancmange-4a5494.netlify.app/#/)!!!!.

## Examples

The select component will be the same from `react-select v5` so you will be able to use it with any select you already have.

Check [Storybook](https://serene-hawking-021d7a.netlify.com/) for more examples

```jsx
const options = [
  {
    value: 1,
    label: `guiyep`,
  },
  ...
];

const opsGroup = [
  { label: `Group Name Header`, options },
  ...
]
```

## Basic

```jsx
import React from 'react';

import Select from 'react-select-virtualized';

const Example1 = () => <Select options={options} />;
```

[![Edit react-select-virtualized](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vigilant-mclean-wpbk7)

## With group

```jsx
import React from 'react';

import Select from 'react-select-virtualized';

const Example1 = () => <Select options={opsGroup} grouped />;
```

[![Edit react-select-virtualized](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/angry-wing-5deq4)

---
_Source: https://npm.io/package/react-select-virtualized · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
