{"id":31970482,"url":"https://github.com/hubspot/react-select-plus","last_synced_at":"2025-10-14T19:15:42.448Z","repository":{"id":57344401,"uuid":"51099011","full_name":"HubSpot/react-select-plus","owner":"HubSpot","description":"Fork of https://github.com/JedWatson/react-select with option group support","archived":false,"fork":false,"pushed_at":"2023-02-26T00:16:02.000Z","size":12540,"stargazers_count":286,"open_issues_count":25,"forks_count":91,"subscribers_count":146,"default_branch":"master","last_synced_at":"2025-10-10T18:34:21.926Z","etag":null,"topics":["hubspot","react"],"latest_commit_sha":null,"homepage":"http://github.hubspot.com/react-select-plus/","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/HubSpot.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-02-04T19:16:44.000Z","updated_at":"2025-05-03T22:19:58.000Z","dependencies_parsed_at":"2022-09-13T17:01:08.095Z","dependency_job_id":"7de92b89-9aa5-4e7d-ae6c-298c54b1e00c","html_url":"https://github.com/HubSpot/react-select-plus","commit_stats":{"total_commits":1638,"total_committers":321,"mean_commits":5.102803738317757,"dds":0.5323565323565324,"last_synced_commit":"8ae7465fc9b6b9600a01e4e23de97f2d403fd139"},"previous_names":[],"tags_count":103,"template":false,"template_full_name":null,"purl":"pkg:github/HubSpot/react-select-plus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Freact-select-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Freact-select-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Freact-select-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Freact-select-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HubSpot","download_url":"https://codeload.github.com/HubSpot/react-select-plus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Freact-select-plus/sbom","scorecard":{"id":63580,"data":{"date":"2025-08-11","repo":{"name":"github.com/HubSpot/react-select-plus","commit":"8ae7465fc9b6b9600a01e4e23de97f2d403fd139"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Code-Review","score":3,"reason":"Found 1/3 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"159 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-rvg8-pwq2-xj7q","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-wxhq-pm8v-cw75","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-p28h-cc7q-c4fg","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-hr2v-3952-633q","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-3wcq-x3mq-6r9p","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-xf7w-r453-m56c","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-8mmm-9v2q-x3f9","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr","Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-xxvw-45rp-3mj2","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-675m-85rw-j3w4","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-pp57-mqmh-44h7","Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-6394-6h9h-cfjg","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-wvhm-4hhf-97x9","Warn: Project is vulnerable to: GHSA-h4hr-7fg3-h35w","Warn: Project is vulnerable to: GHSA-gj77-59wh-66hg","Warn: Project is vulnerable to: GHSA-hqhp-5p83-hx96","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-hxcm-v35h-mg2x","Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-c9g6-9335-x697","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-f523-2f5j-gfcg","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-g7q5-pjjr-gqvp","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-884p-74jh-xrg2","Warn: Project is vulnerable to: GHSA-j7fq-p9q7-5wfv","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-xc7v-wxcw-j472","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-34r7-q49f-h37c","Warn: Project is vulnerable to: GHSA-c9f4-xj24-8jqx","Warn: Project is vulnerable to: GHSA-pv4c-p2j5-38j4","Warn: Project is vulnerable to: GHSA-46c4-8wrp-j99v","Warn: Project is vulnerable to: GHSA-9m6j-fcg5-2442","Warn: Project is vulnerable to: GHSA-hh27-ffr2-f2jc","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-cf66-xwfp-gvc4","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-g78m-2chm-r7qv","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T02:11:15.952Z","repository_id":57344401,"created_at":"2025-08-15T02:11:15.952Z","updated_at":"2025-08-15T02:11:15.952Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020649,"owners_count":26086895,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hubspot","react"],"created_at":"2025-10-14T19:15:40.315Z","updated_at":"2025-10-14T19:15:42.441Z","avatar_url":"https://github.com/HubSpot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-Select-Plus\n\nA fork of [JedWatson/React-Select](https://github.com/JedWatson/react-select/) with support for option groups.\n\n\n## :rotating_light: Project status :rotating_light:\n\nThis fork is no longer actively maintained. The primary purpose of this project was to add option group support to react-select, a feature that will be supported in the upcoming react-select 2.0. Another alternative worth checking out is [downshift](https://github.com/paypal/downshift), which provides low-level building blocks for building custom dropdown components.\n\n\n## Demo \u0026 Examples\n\nLive demo: [github.hubspot.com/react-select-plus/](http://github.hubspot.com/react-select-plus/)\n\n\n## Installation\n\nThe easiest way to use react-select is to install it from npm and build it into your app with Webpack.\n\n```js\nyarn add react-select-plus\n```\n\nYou can then import react-select-plus and its styles in your application as follows:\n\n```js\nimport Select from 'react-select-plus';\nimport 'react-select-plus/dist/react-select-plus.css';\n```\n\nYou can also use the standalone UMD build by including `dist/react-select-plus.js` and `dist/react-select-plus.css` in your page. If you do this you'll also need to include the dependencies. For example:\n\n```html\n\u003cscript src=\"https://unpkg.com/react@15.6.1/dist/react.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/react-dom@15.6.1/dist/react-dom.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/prop-types@15.5.10/prop-types.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/classnames@2.2.5/index.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/react-input-autosize@2.0.0/dist/react-input-autosize.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/react-select-plus/dist/react-select-plus.js\"\u003e\u003c/script\u003e\n\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/react-select-plus/dist/react-select-plus.css\"\u003e\n```\n\n\n## Usage\n\nReact-Select generates a hidden text field containing the selected value, so you can submit it as part of a standard form. You can also listen for changes with the `onChange` event property.\n\nOptions should be provided as an `Array` of `Object`s, each with a `value` and `label` property for rendering and searching. You can use a `disabled` property to indicate whether the option is disabled or not.\n\nThe `value` property of each option should be either a string or a number.\n\nWhen the value is changed, `onChange(selectedValueOrValues)` will fire. Note that (as of 1.0) you **must** handle the change and pass the updated `value` to the Select.\n\n```js\nimport React from 'react';\nimport Select from 'react-select-plus';\n\nclass App extends React.Component {\n  state = {\n    selectedOption: '',\n  }\n  handleChange = (selectedOption) =\u003e {\n    this.setState({ selectedOption });\n    console.log(`Selected: ${selectedOption.label}`);\n  }\n  render() {\n  \tconst { selectedOption } = this.state;\n  \tconst value = selectedOption \u0026\u0026 selectedOption.value;\n  \t\n    return (\n      \u003cSelect\n        name=\"form-field-name\"\n        value={value}\n        onChange={this.handleChange}\n        options={[\n          { value: 'one', label: 'One' },\n          { value: 'two', label: 'Two' },\n        ]}\n      /\u003e\n    );\n  }\n}\n```\n\nYou can customise the `valueKey` and `labelKey` props to use a different option shape.\n\n### Option Groups\n\nYou can generate option groups by structuring your options in a nested way as follows:\n\n```js\nconst options = [\n\t{\n\t\tlabel: 'Primary Colors', options: [\n\t\t\t{ label: 'Yellow', value: 'yellow' },\n\t\t\t{ label: 'Red', value: 'red' },\n\t\t\t{ label: 'Blue', value: 'blue' }\n\t\t]\n\t},\n\t{\n\t\tlabel: 'Secondary Colors', options: [\n\t\t\t{ label: 'Orange', value: 'orange' },\n\t\t\t{\n\t\t\t\tlabel: 'Purple', options: [\n\t\t\t\t\t{ label: 'Light Purple', value: 'light_purple' },\n\t\t\t\t\t{ label: 'Medium Purple', value: 'medium_purple' },\n\t\t\t\t\t{ label: 'Dark Purple', value: 'dark_purple' }\n\t\t\t\t]\n\t\t\t},\n\t\t\t{ label: 'Green', value: 'green' }\n\t\t]\n\t},\n\t{\n\t\tlabel: 'White',\n\t\tvalue: 'white',\n\t}\n];\n```\n\n### Custom classNames\n\nYou can provide a custom `className` prop to the `\u003cSelect\u003e` component, which will be added to the base `.Select` className for the outer container.\n\nThe built-in Options renderer also support custom classNames, just add a `className` property to objects in the `options` array.\n\n### Multiselect options\n\nYou can enable multi-value selection by setting `multi={true}`. In this mode:\n\n* Selected options will be removed from the dropdown menu by default. If you want them to remain in the list, set `removeSelected={false}`\n* The selected values are submitted in multiple `\u003cinput type=\"hidden\"\u003e` fields, use the `joinValues` prop to submit joined values in a single field instead\n* The values of the selected items are joined using the `delimiter` prop to create the input value when `joinValues` is true\n* A simple value, if provided, will be split using the `delimiter` prop\n* The `onChange` event provides an array of selected options _or_ a comma-separated string of values (eg `\"1,2,3\"`) if `simpleValue` is true\n* By default, only options in the `options` array can be selected. Use the `Creatable` Component (which wraps `Select`) to allow new options to be created if they do not already exist. Hitting comma (','), ENTER or TAB will add a new option. Versions `0.9.x` and below provided a boolean attribute on the `Select` Component (`allowCreate`) to achieve the same functionality. It is no longer available starting with version `1.0.0`.\n* By default, selected options can be cleared. To disable the possibility of clearing a particular option, add `clearableValue: false` to that option:\n```js\nvar options = [\n  { value: 'one', label: 'One' },\n  { value: 'two', label: 'Two', clearableValue: false }\n];\n```\nNote: the `clearable` prop of the Select component should also be set to `false` to prevent allowing clearing all fields at once\n\n#### Accessibility Note\n\nSelected values aren't focus targets, which means keyboard users can't tab to them, and are restricted to removing them using backspace in order. This isn't ideal and I'm looking at other options for the future; in the meantime if you want to use a custom `valueComponent` that implements tabIndex and keyboard event handling, see #2098 for an example.\n\n### Async options\n\nIf you want to load options asynchronously, use the `Async` export and provide a `loadOptions` Function.\n\nThe function takes two arguments `String input, Function callback`and will be called when the input text is changed.\n\nWhen your async process finishes getting the options, pass them to `callback(err, data)` in a Object `{ options: [] }`.\n\nThe select control will intelligently cache options for input strings that have already been fetched. The cached result set will be filtered as more specific searches are input, so if your async process would only return a smaller set of results for a more specific query, also pass `complete: true` in the callback object. Caching can be disabled by setting `cache` to `false` (Note that `complete: true` will then have no effect).\n\nUnless you specify the property `autoload={false}` the control will automatically load the default set of options (i.e. for `input: ''`) when it is mounted.\n\n```js\nimport { Async } from 'react-select-plus';\n\nconst getOptions = (input, callback) =\u003e {\n  setTimeout(() =\u003e {\n    callback(null, {\n      options: [\n        { value: 'one', label: 'One' },\n        { value: 'two', label: 'Two' }\n      ],\n      // CAREFUL! Only set this to true when there are no more options,\n      // or more specific queries will not be sent to the server.\n      complete: true\n    });\n  }, 500);\n};\n\n\u003cAsync\n    name=\"form-field-name\"\n    loadOptions={getOptions}\n/\u003e\n```\n\n#### Note about filtering async options\n\nThe `Async` component doesn't change the default behaviour for filtering the options based on user input, but if you're already filtering the options server-side you may want to customise or disable this feature (see [filtering options](#filtering-options) below)\n\n### Async options with Promises\n\n`loadOptions` supports Promises, which can be used in very much the same way as callbacks.\n\nEverything that applies to `loadOptions` with callbacks still applies to the Promises approach (e.g. caching, autoload, ...)\n\nAn example using the `fetch` API and ES6 syntax, with an API that returns an object like:\n\n```js\nimport { Async } from 'react-select-plus';\n\n/*\n * assuming the API returns something like this:\n *   const json = [\n *      { value: 'one', label: 'One' },\n *      { value: 'two', label: 'Two' }\n *   ]\n */\n\nconst getOptions = (input) =\u003e {\n  return fetch(`/users/${input}.json`)\n    .then((response) =\u003e {\n      return response.json();\n    }).then((json) =\u003e {\n      return { options: json };\n    });\n}\n\n\u003cAsync\n  name=\"form-field-name\"\n  value=\"one\"\n  loadOptions={getOptions}\n/\u003e\n```\n\n### Async options loaded externally\n\nIf you want to load options asynchronously externally from the `Select` component, you can have the `Select` component show a loading spinner by passing in the `isLoading` prop set to `true`.\n\n```js\nimport Select from 'react-select-plus';\n\nlet isLoadingExternally = true;\n\n\u003cSelect\n  name=\"form-field-name\"\n  isLoading={isLoadingExternally}\n  ...\n/\u003e\n```\n\n### User-created tags\n\nThe `Creatable` component enables users to create new tags within react-select.\nIt decorates a `Select` and so it supports all of the default properties (eg single/multi mode, filtering, etc) in addition to a couple of custom ones (shown below).\nThe easiest way to use it is like so:\n\n```js\nimport { Creatable } from 'react-select-plus';\n\nfunction render (selectProps) {\n  return \u003cCreatable {...selectProps} /\u003e;\n};\n```\n\n### Combining Async and Creatable\n\nUse the `AsyncCreatable` HOC if you want both _async_ and _creatable_ functionality.\nIt ties `Async` and `Creatable` components together and supports a union of their properties (listed above).\nUse it as follows:\n\n```js\nimport { AsyncCreatable } from 'react-select-plus';\n\nfunction render (props) {\n  // props can be a mix of Async, Creatable, and Select properties\n  return (\n    \u003cAsyncCreatable {...props} /\u003e\n  );\n}\n```\n\n### Filtering options\n\nYou can control how options are filtered with the following props:\n\n* `matchPos`: `\"start\"` or `\"any\"`: whether to match the text entered at the start or any position in the option value\n* `matchProp`: `\"label\"`, `\"value\"` or `\"any\"`: whether to match the value, label or both values of each option when filtering\n* `ignoreCase`: `Boolean`: whether to ignore case or match the text exactly when filtering\n* `ignoreAccents`: `Boolean`: whether to ignore accents on characters like ø or å\n\n`matchProp` and `matchPos` both default to `\"any\"`.\n`ignoreCase` defaults to `true`.\n`ignoreAccents` defaults to `true`.\n\n#### Advanced filters\n\nYou can also completely replace the method used to filter either a single option, or the entire options array (allowing custom sort mechanisms, etc.)\n\n* `filterOption`: `function(Object option, String filter)` returns `Boolean`. Will override `matchPos`, `matchProp`, `ignoreCase` and `ignoreAccents` options.\n* `filterOptions`: `function(Array options, String filter, Array currentValues)` returns `Array filteredOptions`. Will override `filterOption`, `matchPos`, `matchProp`, `ignoreCase` and `ignoreAccents` options.\n\nFor multi-select inputs, when providing a custom `filterOptions` method, remember to exclude current values from the returned array of options.\n\n#### Filtering large lists\n\nThe default `filterOptions` method scans the options array for matches each time the filter text changes.\nThis works well but can get slow as the options array grows to several hundred objects.\nFor larger options lists a custom filter function like [`react-select-fast-filter-options`](https://github.com/bvaughn/react-select-fast-filter-options) will produce better results.\n\n### Efficiently rendering large lists with windowing\n\nThe `menuRenderer` property can be used to override the default drop-down list of options.\nThis should be done when the list is large (hundreds or thousands of items) for faster rendering.\nWindowing libraries like [`react-virtualized`](https://github.com/bvaughn/react-virtualized) can then be used to more efficiently render the drop-down menu like so.\nThe easiest way to do this is with the [`react-virtualized-select`](https://github.com/bvaughn/react-virtualized-select/) HOC.\nThis component decorates a `Select` and uses the react-virtualized `VirtualScroll` component to render options.\nDemo and documentation for this component are available [here](https://bvaughn.github.io/react-virtualized-select/).\n\nYou can also specify your own custom renderer.\nThe custom `menuRenderer` property accepts the following named parameters:\n\n| Parameter | Type | Description |\n|:---|:---|:---|\n| focusedOption | `Object` | The currently focused option; should be visible in the menu by default. |\n| focusOption | `Function` | Callback to focus a new option; receives the option as a parameter. |\n| labelKey | `String` | Option labels are accessible with this string key. |\n| optionClassName | `String` | The className that gets used for options |\n| optionComponent | `ReactClass` | The react component that gets used for rendering an option |\n| optionRenderer | `Function` | The function that gets used to render the content of an option |\n| options | `Array\u003cObject\u003e` | Ordered array of options to render. |\n| selectValue | `Function` | Callback to select a new option; receives the option as a parameter. |\n| valueArray | `Array\u003cObject\u003e` | Array of currently selected options. |\n\n### Updating input values with onInputChange\n\nYou can manipulate the input by providing a `onInputChange` callback that returns a new value.\n**Please note:** When you want to use `onInputChange` only to listen to the input updates, you still have to return the unchanged value!\n\n```js\nfunction cleanInput(inputValue) {\n    // Strip all non-number characters from the input\n    return inputValue.replace(/[^0-9]/g, \"\");\n}\n\n\u003cSelect\n    name=\"form-field-name\"\n    onInputChange={cleanInput}\n/\u003e\n```\n\n### Overriding default key-down behaviour with onInputKeyDown\n\n`Select` listens to `keyDown` events to select items, navigate drop-down list via arrow keys, etc.\nYou can extend or override this behaviour by providing a `onInputKeyDown` callback.\n\n```js\nfunction onInputKeyDown(event) {\n    switch (event.keyCode) {\n        case 9:   // TAB\n            // Extend default TAB behaviour by doing something here\n            break;\n        case 13: // ENTER\n            // Override default ENTER behaviour by doing stuff here and then preventing default\n            event.preventDefault();\n            break;\n    }\n}\n\n\u003cSelect\n    {...otherProps}\n    onInputKeyDown={onInputKeyDown}\n/\u003e\n```\n\n### Select Props\n\n| Property | Type | Default | Description |\n|:---|:---|:---|:---|\n| `aria`-describedby | string | undefined | HTML ID(s) of element(s) that should be used to describe this input (for assistive tech) |\n| `aria`-label | string | undefined | Aria label (for assistive tech) |\n| `aria`-labelledby | string | undefined | HTML ID of an element that should be used as the label (for assistive tech) |\n| `arrowRenderer` | function | undefined | Renders a custom drop-down arrow to be shown in the right-hand side of the select: `arrowRenderer({ onMouseDown, isOpen })`. Won't render when set to `null`\n| `autoBlur` | boolean | false | Blurs the input element after a selection has been made. Handy for lowering the keyboard on mobile devices |\n| `autofocus` | boolean | undefined | deprecated; use the autoFocus prop instead |\n| `autoFocus` | boolean | undefined | autofocus the component on mount |\n| `autoload` | boolean | true | whether to auto-load the default async options set |\n| `autosize` | boolean | true | If enabled, the input will expand as the length of its value increases |\n| `backspaceRemoves` | boolean | true | whether pressing backspace removes the last item when there is no input value |\n| `backspaceToRemoveMessage` | string | 'Press backspace to remove {last label}' | prompt shown in input when at least one option in a multiselect is shown, set to '' to clear |\n| `className` | string | undefined | className for the outer element |\n| `clearable` | boolean | true | should it be possible to reset value |\n| `clearAllText` | string | 'Clear all' | title for the \"clear\" control when `multi` is true |\n| `clearRenderer` | function | undefined | Renders a custom clear to be shown in the right-hand side of the select when clearable true: `clearRenderer()` |\n| `clearValueText` | string | 'Clear value' | title for the \"clear\" control |\n| `closeOnSelect` | boolean | true | whether to close the menu when a value is selected\n| `deleteRemoves` | boolean | true | whether pressing delete key removes the last item when there is no input value |\n| `delimiter` | string | ',' | delimiter to use to join multiple values |\n| `disabled` | boolean | false | whether the Select is disabled or not |\n| `escapeClearsValue` | boolean | true | whether escape clears the value when the menu is closed |\n| `filterOption` | function | undefined | method to filter a single option `(option, filterString) =\u003e boolean` |\n| `filterOptions` | boolean or function | undefined | boolean to enable default filtering or function to filter the options array `([options], filterString, [values]) =\u003e [options]` |\n| `id` | string | undefined | html id to set on the input element for accessibility or tests\n| `ignoreAccents` | boolean | true | whether to strip accents when filtering |\n| `ignoreCase` | boolean | true | whether to perform case-insensitive filtering |\n| `inputProps` | object | undefined | custom attributes for the Input (in the Select-control) e.g: `{'data-foo': 'bar'}` |\n| `inputRenderer` | function | undefined | renders a custom input component |\n| `instanceId` | string | increment | instance ID used internally to set html ids on elements for accessibility, specify for universal rendering |\n| `isLoading` | boolean | false | whether the Select is loading externally or not (such as options being loaded) |\n| `joinValues` | boolean | false | join multiple values into a single hidden input using the `delimiter` |\n| `labelKey` | string | 'label' | the option property to use for the label |\n| `matchPos` | string | 'any' | (any, start) match the start or entire string when filtering |\n| `matchProp` | string | 'any' | (any, label, value) which option property to filter on |\n| `menuBuffer` | number | 0 | buffer of px between the base of the dropdown and the viewport to shift if menu doesnt fit in viewport |\n| `menuContainerStyle` | object | undefined | optional style to apply to the menu container |\n| `menuRenderer` | function | undefined | Renders a custom menu with options; accepts the following named parameters: `menuRenderer({ focusedOption, focusOption, options, selectValue, valueArray })` |\n| `menuStyle` | object | undefined | optional style to apply to the menu |\n| `multi` | boolean | undefined | multi-value input |\n| `name` | string | undefined | field name, for hidden `\u003cinput /\u003e` tag |\n| `noResultsText` | string | 'No results found' | placeholder displayed when there are no matching search results or a falsy value to hide it (can also be a react component) |\n| `onBlur` | function | undefined | onBlur handler: `function(event) {}` |\n| `onBlurResetsInput` | boolean | true | Whether to clear input on blur or not. If set to false, it only works if onCloseResetsInput is false as well. |\n| `onChange` | function | undefined | onChange handler: `function(newOption) {}` |\n| `onClose` | function | undefined | handler for when the menu closes: `function () {}` |\n| `onCloseResetsInput` | boolean | true | whether to clear input when closing the menu through the arrow |\n| `onFocus` | function | undefined | onFocus handler: `function(event) {}` |\n| `onInputChange` | function | undefined | onInputChange handler/interceptor: `function(inputValue: string): string` |\n| `onInputKeyDown` | function | undefined | input keyDown handler; call `event.preventDefault()` to override default `Select` behaviour: `function(event) {}` |\n| `onMenuScrollToBottom` | function | undefined | called when the menu is scrolled to the bottom |\n| `onOpen` | function | undefined | handler for when the menu opens: `function () {}` |\n| `onSelectResetsInput` | boolean | true | whether the input value should be reset when options are selected. Also input value will be set to empty if 'onSelectResetsInput=true' and Select will get new value that not equal previous value. |\n| `onValueClick` | function | undefined | onClick handler for value labels: `function (value, event) {}` |\n| `openOnClick` | boolean | true | open the options menu when the control is clicked (requires searchable = true) |\n| `openOnFocus` | boolean | false | open the options menu when the control gets focus |\n| `optionClassName`: string | undefined | additional class(es) to apply to the \u003cOption /\u003e elements\n| `optionComponent` | function | undefined | option component to render in dropdown |\n| `optionRenderer` | function | undefined | custom function to render the options in the menu |\n| `options` | array | undefined | array of options |\n| `removeSelected` | boolean | true | whether the selected option is removed from the dropdown on multi selects |\n| `pageSize` | number | 5 | number of options to jump when using page up/down keys |\n| `placeholder` | string or node | 'Select ...' | field placeholder, displayed when there's no value |\n| `required` | boolean | false | applies HTML5 required attribute when needed |\n| `resetValue` | any | null | value to set when the control is cleared |\n| `rtl` | boolean | false | use react-select in right-to-left direction |\n| `scrollMenuIntoView` | boolean | true | whether the viewport will shift to display the entire menu when engaged |\n| `searchable` | boolean | true | whether to enable searching feature or not |\n| `searchPromptText` | string or node | 'Type to search' | label to prompt for search input |\n| `simpleValue` | boolean | false | pass the value to onChange as a string |\n| `style` | object | undefined | optional styles to apply to the control |\n| `tabIndex` | string or number | undefined | tabIndex of the control |\n| `tabSelectsValue` | boolean | true | whether to select the currently focused value when the `[tab]` key is pressed |\n| `trimFilter` | boolean | false | whether to trim whitespace from the filter value |\n| `value` | any | undefined | initial field value |\n| `valueComponent` | function | \u003cValue /\u003e | function which returns a custom way to render/manage the value selected `\u003cCustomValue /\u003e` |\n| `valueKey` | string | 'value' | the option property to use for the value |\n| `valueRenderer` | function | undefined | function which returns a custom way to render the value selected `function (option) {}` |\n| `wrapperStyle` | object | undefined | optional styles to apply to the component wrapper |\n\n#### Async Props\n\n\n| Property | Type | Default | Description |\n|:---|:---|:---|:---|\n| `autoload` | boolean | true | automatically call the `loadOptions` prop on-mount |\n| `cache` | object | undefined | Sets the cache object used for options. Set to `false` if you would like to disable caching.\n| `loadingPlaceholder` | string or node | 'Loading...' | label to prompt for loading search result |\n| `loadOptions` | function | undefined | function that returns a promise or calls a callback with the options: `function(input, [callback])` |\n\n#### Creatable properties\n\n| Property | Type | Description |\n:---|:---|:---|\n| `children` | function | Child function responsible for creating the inner Select component. This component can be used to compose HOCs (eg Creatable and Async). Expected signature: `(props: Object): PropTypes.element` |\n| `isOptionUnique` | function | Searches for any matching option within the set of options. This function prevents duplicate options from being created. By default this is a basic, case-sensitive comparison of label and value. Expected signature: `({ option: Object, options: Array, labelKey: string, valueKey: string }): boolean` |\n| `isValidNewOption` | function | Determines if the current input text represents a valid option. By default any non-empty string will be considered valid. Expected signature: `({ label: string }): boolean` |\n| `newOptionCreator` | function | Factory to create new option. Expected signature: `({ label: string, labelKey: string, valueKey: string }): Object` |\n| `onNewOptionClick` | function | new option click handler, it calls when new option has been selected. `function(option) {}` |\n| `shouldKeyDownEventCreateNewOption` | function | Decides if a keyDown event (eg its `keyCode`) should result in the creation of a new option. ENTER, TAB and comma keys create new options by default. Expected signature: `({ keyCode: number }): boolean` |\n| `promptTextCreator` | function | Factory for overriding default option creator prompt label. By default it will read 'Create option \"{label}\"'. Expected signature: `(label: String): String` |\n\n### Methods\n\nUse the `focus()` method to give the control focus. All other methods on `\u003cSelect\u003e` elements should be considered private.\n\n```js\n// focuses the input element\n\u003cinstance\u003e.focus();\n```\n\n# Contributing\n\nSee our [CONTRIBUTING.md](https://github.com/JedWatson/react-select/blob/master/CONTRIBUTING.md) for information on how to contribute.\n\nThanks to the projects this was inspired by: [Selectize](http://selectize.github.io/selectize.js/) (in terms of behaviour and user experience), [React-Autocomplete](https://github.com/rackt/react-autocomplete) (as a quality React Combobox implementation), as well as other select controls including [Chosen](http://harvesthq.github.io/chosen/) and [Select2](http://ivaynberg.github.io/select2/).\n\n\n# License\n\nMIT Licensed. Copyright (c) HubSpot 2017.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubspot%2Freact-select-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubspot%2Freact-select-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubspot%2Freact-select-plus/lists"}