{"id":17449267,"url":"https://github.com/ahstro/react-dropdown-multiselect","last_synced_at":"2025-03-30T11:26:35.280Z","repository":{"id":75938147,"uuid":"52345202","full_name":"ahstro/react-dropdown-multiselect","owner":"ahstro","description":" A dead simple dropdown multiselect component for React ","archived":false,"fork":false,"pushed_at":"2017-01-03T09:43:14.000Z","size":1313,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T13:19:54.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ahstro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-23T08:58:49.000Z","updated_at":"2018-06-05T02:45:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"290ab676-b25c-4947-84a4-eb7fa493ca27","html_url":"https://github.com/ahstro/react-dropdown-multiselect","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/ahstro%2Freact-dropdown-multiselect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahstro%2Freact-dropdown-multiselect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahstro%2Freact-dropdown-multiselect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahstro%2Freact-dropdown-multiselect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahstro","download_url":"https://codeload.github.com/ahstro/react-dropdown-multiselect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246310402,"owners_count":20756931,"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":[],"created_at":"2024-10-17T21:09:19.809Z","updated_at":"2025-03-30T11:26:35.245Z","avatar_url":"https://github.com/ahstro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Disclaimer\n======\nThis is  a fork of [react-dropdown](https://github.com/fraserxu/react-dropdown)\nby [fraserxu](https://github.com/fraserxu), so huge thanks to them!\nI just needed multiselect for a project and forked,\nso since I don't expect anyone else to really use this,\nI'm not going to spend a lot of time rewriting the docs.\nWhat follows is basically just react-dropdown's README after\na `s/react-dropdown/\\0-multiselect/g`, so things are bound not\nto be accurate AT ALL.\nMight rewrite it at some point if I feel like it.\n\nreact-dropdown-multiselect\n==============\n\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][downloads-url]\n\nSimple Dropdown component for React, inspired by [react-select](https://github.com/JedWatson/react-select)\n\n\n### Why\n\n* The default HTML select element is hard to style\n* And sometime we also want grouped menus\n* if you want more advanced select, check [react-select](https://github.com/JedWatson/react-select)\n\n### Installation\n\n```\n$ npm install react-dropdown-multiselect  --save\n```\n\n### Changelog\n\nIf you want to support React version under v0.13, use react-dropdown@v0.6.1\n\n### Usage\n\n```JavaScript\n'use strict';\n\nimport React from 'react';\nimport Dropdown from '../';\n\nclass App extends React.Component {\n\n  constructor() {\n    this.state = {\n      selected: { value: 'two', label: 'Two'}\n    }\n  }\n\n  _onSelect(option) {\n    console.log('You selected ', option.label)\n    this.setState({selected: option})\n  }\n\n  render() {\n\n    const options = [\n      { value: 'one', label: 'One' },\n      { value: 'two', label: 'Two' },\n      {\n        type: 'group', name: 'group1', items: [\n          { value: 'three', label: 'Three' },\n          { value: 'four', label: 'Four' }\n        ]\n      },\n      {\n        type: 'group', name: 'group2', items: [\n          { value: 'five', label: 'Five' },\n          { value: 'six', label: 'Six' }\n        ]\n      }\n    ]\n\n    let defaultOption = this.state.selected\n\n    return (\n      \u003cDropdown options={options} onChange={this._onSelect.bind(this)} value={defaultOption} placeholder=\"Select an option\" /\u003e\n    )\n  }\n\n}\nReact.render(\u003cApp /\u003e, document.body)\n\n```\n\n**Run example**\n\n```\n$ cd example \u0026\u0026 npm install \u0026\u0026 npm run watch\n```\n\n### License\n\nMIT | Build for [CSViz](https://csviz.org) project @[Wiredcraft](http://wiredcraft.com)\n\n[npm-image]: https://img.shields.io/npm/v/react-dropdown-multiselect.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/react-dropdown-multiselect\n[downloads-image]: http://img.shields.io/npm/dm/react-dropdown-multiselect.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/react-dropdown-multiselect\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahstro%2Freact-dropdown-multiselect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahstro%2Freact-dropdown-multiselect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahstro%2Freact-dropdown-multiselect/lists"}