https://github.com/tonix-tuft/react-multiselect-checkbox
A React component implementing multiple selection for checkbox inputs as well as other DOM elements.
https://github.com/tonix-tuft/react-multiselect-checkbox
checkbox component multiselect react react-component
Last synced: 4 months ago
JSON representation
A React component implementing multiple selection for checkbox inputs as well as other DOM elements.
- Host: GitHub
- URL: https://github.com/tonix-tuft/react-multiselect-checkbox
- Owner: tonix-tuft
- License: mit
- Created: 2020-03-29T19:33:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-23T02:06:56.000Z (about 2 years ago)
- Last Synced: 2025-10-01T23:22:42.041Z (9 months ago)
- Topics: checkbox, component, multiselect, react, react-component
- Language: JavaScript
- Homepage:
- Size: 2.65 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-multiselect-checkbox
A React component implementing multiple selection for checkbox inputs as well as other DOM elements.
[](https://www.npmjs.com/package/react-multiselect-checkbox)
## Installation
```bash
npm install --save react-multiselect-checkbox
```
Install peer dependencies:
```bash
npm install --save react react-dom
```
## Usage
```jsx
import React, { Component } from "react";
import MultiselectCheckbox from "react-multiselect-checkbox";
class Example extends Component {
render() {
return (
ID
NAME
SURNAME
{
console.log("Not all checked", selectedMap.orderedByI());
}}
onAllChecked={(selectedMap) => {
console.log("All checked", selectedMap.orderedByI());
}}
onAllUnchecked={(selectedMap) => {
console.log("All unchecked", selectedMap.orderedByI());
}}
/>
1
John
Richardson
2
Terry
Mitchell
3
Emma
Moore
4
Larry
Young
5
Amanda
Walker
6
Sara
Sullivan
7
Tommy
Green
8
Scott
Reyes
9
Raimond
Reed
10
Sam
Parker
11
Peter
Ortiz
12
Olivia
Garden
13
Ava
Mayer
14
John
Robinson
15
Amelia
Simpson
16
Charlotte
Martinez
17
Sophia
Jones
18
Alfred
Jackson
19
Albert
Hill
20
Howard
Foster
21
Evelyn
Evans
22
Richard
Davis
23
Jim
Brown
24
Emily
Campbell
25
Ester
González
26
Charlotte
De La Rosa
27
Michael
Wells
28
Mila
Young
29
Kevin
Harris
30
Hannah
Gray
31
Clark
Wayne
32
Ellie
Fisher
33
Paul
Phillips
34
Anthony
Wright
35
Adam
Baker
36
Samantha
Morris
37
Peter
Collins
38
Lily
Sweet
39
Justin
Cook
40
Tim
Bell
41
Tom
Clancy
42
Frederique
Darragon
43
Jules
Vern
44
Amelia
Simpson
45
Mary
Hold
46
Valentino
Rossi
47
Peter
Thrive
48
Patrick
Jamison
49
Albert
Collins
50
John
McKenty
);
}
}
```
## License
MIT © [Anton Bagdatyev (Tonix)](https://github.com/tonix-tuft)