{"id":20438512,"url":"https://github.com/chaosgroup/react-multi-select","last_synced_at":"2026-04-18T12:36:22.643Z","repository":{"id":34984114,"uuid":"193873408","full_name":"ChaosGroup/react-multi-select","owner":"ChaosGroup","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-10T20:34:38.000Z","size":3995,"stargazers_count":1,"open_issues_count":30,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-22T19:37:57.453Z","etag":null,"topics":["multi-select","react","react-component","react-typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChaosGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-26T09:28:42.000Z","updated_at":"2019-06-28T11:49:33.000Z","dependencies_parsed_at":"2023-01-15T11:30:46.683Z","dependency_job_id":null,"html_url":"https://github.com/ChaosGroup/react-multi-select","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaosGroup%2Freact-multi-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaosGroup%2Freact-multi-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaosGroup%2Freact-multi-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaosGroup%2Freact-multi-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChaosGroup","download_url":"https://codeload.github.com/ChaosGroup/react-multi-select/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241983721,"owners_count":20052740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["multi-select","react","react-component","react-typescript"],"created_at":"2024-11-15T09:11:58.862Z","updated_at":"2026-04-18T12:36:17.587Z","avatar_url":"https://github.com/ChaosGroup.png","language":"TypeScript","readme":"# react-multi-select\n\n[![Build Status](https://travis-ci.org/ChaosGroup/react-multi-select.svg?branch=master)](https://travis-ci.org/ChaosGroup/react-multi-select)\n[![Coverage Status](https://coveralls.io/repos/github/ChaosGroup/react-multi-select/badge.svg?branch=master)](https://coveralls.io/github/ChaosGroup/react-multi-select?branch=master)\n\u003cbr\u003e\n[![NPM](https://nodei.co/npm/@chaosgroup/react-multi-select.png)](https://npmjs.org/package/@chaosgroup/react-multi-select)\n\nReact components that provide multiple selection logic. Features mouse and keyboard selections. Can render arbitary tags as selectable items.\n\n![quick example](./examples.gif)\n\n```js\nimport React from 'react';\nimport MultiSelect, { Selectable } from '@chaosgroup/react-multi-select';\n\nexport default class SelectableParagraphs extends React.Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = { selection: new Set };\n\t\tthis.onSelectionChange = this.onSelectionChange.bind(this);\n\t}\n\n\tonSelectionChange(selection) {\n\t\tthis.state.selection !== selection \u0026\u0026 this.setState({ selection });\n\t}\n\n\trender() {\n\t\tconst { selection } = this.state;\n\n\t\treturn (\n\t\t\t\u003cMultiSelect\n\t\t\t\trender=\"div\"\n\t\t\t\tselection={selection}\n\t\t\t\tonSelectionChange={this.onSelectionChange}\n\t\t\t\u003e\n\t\t\t\t{\n\t\t\t\t\tthis.props.texts.map(p =\u003e (\n\t\t\t\t\t\t\u003cSelectable render=\"p\" key={p} data={p}\u003e\n\t\t\t\t\t\t\t{p}{selection.has(p) \u0026\u0026 ' \u003c'}\n\t\t\t\t\t\t\u003c/Selectable\u003e\n\t\t\t\t\t))\n\t\t\t\t}\n\t\t\t\u003c/MultiSelect\u003e\n\t\t);\n\t}\n};\n```\n\n### Examples\n1. [selectable paragraphs](./examples/stories/paragraphs/index.jsx)\n2. [tree view](./examples/stories/nested-lists/index.jsx)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaosgroup%2Freact-multi-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaosgroup%2Freact-multi-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaosgroup%2Freact-multi-select/lists"}