# react-mui-multi-select

> Simple and lightweight Mui multiple select dropdown component with search function

Latest version **0.1.1** (published 2022-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-mui-multi-select
pnpm add react-mui-multi-select
yarn add react-mui-multi-select
bun add react-mui-multi-select
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2022-08-02 |
| First published | 2022-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 0 |
| Unpacked size | 476.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | topfullstackdev |
| Maintainers | joujiyoshino |
| Keywords | react, multiSelect, multidropdown, material, multi-select, react-mui-multi-select |

## Links

- npm: https://www.npmjs.com/package/react-mui-multi-select
- Repository: https://github.com/topfullstackdev/multi-select
- Homepage: https://github.com/topfullstackdev/react-mui-multi-select
- npm.io page: https://npm.io/package/react-mui-multi-select

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2022-08-02
- 0.1.0 — 2022-08-01
- 0.0.9 — 2022-08-01
- 0.0.8 — 2022-08-01
- 0.0.7 — 2022-08-01
- 0.0.6 — 2022-07-29
- 0.0.5 — 2022-07-29
- 0.0.3 — 2022-07-29
- 0.0.2 — 2022-07-29
- 0.0.1 — 2022-07-29

## README

# React Mui Multi Select

Simple and lightweight multiple select dropdown component with search function using [Material-UI](https://mui.com).

## Documentation

### Installation

```ssh
yarn react-mui-multi-select
```

or

```ssh
npm install --save react-mui-multi-select
```

### Usage

```TSX
import { useState } from "react";
import { MultiSelect } from "react-mui-multi-select";

export interface MultiSelectEntity {
  count: number;
  entries: Entry[];
}

type Entry = {
  API: string;
  Description: string;
  Auth: string;
  HTTPS: boolean;
  Cors: string;
  Link: string;
  Category: string;
};

interface MultiSelectWidgetProps {
  data?: MultiSelectEntity;
  error?: string;
}

export function MultiSelectWidget({ data, error }: MultiSelectWidgetProps) {
  const entries = data?.entries;

  const [value, setValue] = useState<Entry[]>([]);
  const onChange = (e: Entry[]) => {
    console.log("selected:", e);
    setValue(e);
  };

  return (
    <div>
      {entries && (
        <MultiSelect
          getOptionKey={(u: Entry) => u.Link}
          getOptionLabel={(u: Entry) => u.API}
          value={value}
          options={entries}
          label="Multi Select"
          placeholder="Braveheart"
          onChange={onChange}
        />
      )}
      {error && <div style={{color: "red"}}>{error}</div>}
    </div>
  );
}

```

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