# react-bootstrap-multiselect-ts

> react-bootstrap-multiselect adapted for TypeScript

Latest version **1.0.8** (published 2017-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-bootstrap-multiselect-ts
pnpm add react-bootstrap-multiselect-ts
yarn add react-bootstrap-multiselect-ts
bun add react-bootstrap-multiselect-ts
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2017-12-11 |
| First published | 2017-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yury Kozyrev |
| Maintainers | urakozz |
| Keywords | typescript, react, bootstrap, multiselect, ts |

## Links

- npm: https://www.npmjs.com/package/react-bootstrap-multiselect-ts
- Repository: https://github.com/urakozz/react-bootstrap-multiselect-ts
- Homepage: https://github.com/urakozz/react-bootstrap-multiselect-ts#readme
- Issues: https://github.com/urakozz/react-bootstrap-multiselect-ts/issues
- npm.io page: https://npm.io/package/react-bootstrap-multiselect-ts

## Dependencies (1)

- [react-bootstrap-multiselect](https://npm.io/package/react-bootstrap-multiselect.md) ^2.4.1

## 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

- 1.0.8 (latest) — 2017-12-11
- 1.0.7 — 2017-12-11
- 1.0.6 — 2017-12-11
- 1.0.5 — 2017-12-11
- 1.0.3 — 2017-12-11
- 1.0.2 — 2017-12-11
- 1.0.1 — 2017-12-11
- 1.0.0 — 2017-12-11

## README

# react-bootstrap-multiselect-ts
[![NPM version](https://badge.fury.io/js/react-bootstrap-multiselect-ts.svg)](http://badge.fury.io/js/react-bootstrap-multiselect-ts)
[![Dependency Status](https://david-dm.org/skratchdot/react-bootstrap-multiselect-ts.svg)](https://david-dm.org/skratchdot/react-bootstrap-multiselect-ts)
[![devDependency Status](https://david-dm.org/urakozz/react-bootstrap-multiselect-ts/dev-status.svg)](https://david-dm.org/urakozz/react-bootstrap-multiselect-ts#info=devDependencies)

A multiselect component for react (with bootstrap). This is a TypeScript wrapper on top of: https://github.com/skratchdot/react-bootstrap-multiselect

## Installation

```bash
npm i -S react-bootstrap-multiselect-ts
```

## Usage

```typescript jsx
import {MultiselectProps, Multiselect} from "react-bootstrap-multiselect-ts";

class MultiselectWrapper extends React.Component<MultiselectProps, {}> {
    static defaultProps = {
        onChange: () => {
        },
    };

    protected buttonText = (options: any, checked: any) => {
        const selected = options.length;
        const all = checked[0].length;

        if (all === 0 || selected === 0) {
            return "Nothing selected";
        } else if (selected === all) {
            return "All selected";
        } else {
            return `${selected} options selected`;
        }
    };
    
    render(): JSX.Element {
        return (
            <Multiselect multiple
                         buttonText={this.buttonText}
                         selectAllText="Select all"
                         {...this.props}/>
        );
    }
}

```

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