{"id":13567052,"url":"https://github.com/react-component/select","last_synced_at":"2026-03-02T05:14:03.279Z","repository":{"id":26572811,"uuid":"30027024","full_name":"react-component/select","owner":"react-component","description":"React Select","archived":false,"fork":false,"pushed_at":"2025-12-17T09:01:46.000Z","size":26705,"stargazers_count":929,"open_issues_count":202,"forks_count":483,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-12-20T22:13:31.653Z","etag":null,"topics":["javascript","react","react-component"],"latest_commit_sha":null,"homepage":"https://select-react-component.vercel.app/","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/react-component.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"ant-design","patreon":null,"open_collective":"ant-design","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2015-01-29T15:38:52.000Z","updated_at":"2025-12-17T09:01:50.000Z","dependencies_parsed_at":"2023-02-10T18:15:16.059Z","dependency_job_id":"c3886d08-66cb-433a-a20d-b010aa3b26cb","html_url":"https://github.com/react-component/select","commit_stats":{"total_commits":1139,"total_committers":130,"mean_commits":8.761538461538462,"dds":0.6619841966637401,"last_synced_commit":"561f8b7d69fd5dd2cd7d917c88976cca4e539a9d"},"previous_names":[],"tags_count":501,"template":false,"template_full_name":null,"purl":"pkg:github/react-component/select","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fselect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fselect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fselect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fselect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/select/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fselect/sbom","scorecard":{"id":765406,"data":{"date":"2025-08-11","repo":{"name":"github.com/react-component/select","commit":"143e4d291a7a9edf5c52061fee5bb46d35af67ee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.4,"checks":[{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Maintained","score":10,"reason":"16 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":5,"reason":"Found 16/30 approved changesets -- score normalized to 5","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:16","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:17","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/select/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/select/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/select/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/select/codeql.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:5: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/select/test.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"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":"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":9,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 17 commits out of 18 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"}}]},"last_synced_at":"2025-08-23T00:37:43.709Z","repository_id":26572811,"created_at":"2025-08-23T00:37:43.710Z","updated_at":"2025-08-23T00:37:43.710Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27994396,"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-12-24T02:00:07.193Z","response_time":83,"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":["javascript","react","react-component"],"created_at":"2024-08-01T13:02:22.462Z","updated_at":"2025-12-24T05:57:53.023Z","avatar_url":"https://github.com/react-component.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ant-design","https://opencollective.com/ant-design"],"categories":["TypeScript"],"sub_categories":[],"readme":"# @rc-component/select\n\n---\n\nReact Select Component.\n\n\u003c!-- prettier-ignore --\u003e\n[![NPM version][npm-image]][npm-url]\n[![npm download][download-image]][download-url]\n[![build status][github-actions-image]][github-actions-url]\n[![Codecov][codecov-image]][codecov-url]\n[![bundle size][bundlephobia-image]][bundlephobia-url]\n[![dumi][dumi-image]][dumi-url]\n\n[npm-image]: https://img.shields.io/npm/v/@rc-component/select.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/@rc-component/select\n[github-actions-image]: https://github.com/react-component/select/actions/workflows/test.yml/badge.svg\n[github-actions-url]: https://github.com/react-component/select/actions/workflows/test.yml\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/select/master.svg?style=flat-square\n[codecov-url]: https://app.codecov.io/gh/react-component/select\n[david-url]: https://david-dm.org/react-component/select\n[david-image]: https://david-dm.org/react-component/select/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/select?type=dev\n[david-dev-image]: https://david-dm.org/react-component/select/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/@rc-component/select.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@rc-component/select\n[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/select\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@rc-component/select\n[dumi-url]: https://github.com/umijs/dumi\n[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\n\n## Screenshots\n\n\u003cimg src=\"https://gw.alipayobjects.com/zos/antfincdn/d13eUZlgdJ/tupian.png\" /\u003e\n\n## Feature\n\n- support IE11+,Chrome,Firefox,Safari\n\n### Keyboard\n\n- Open select (focus input || focus and click)\n- KeyDown/KeyUp/Enter to navigate menu\n\n## install\n\n[![@rc-component/select](https://nodei.co/npm/@rc-component/select.png)](https://npmjs.org/package/@rc-component/select)\n\n## Usage\n\n### basic use\n\n```jsx | pure\nimport Select, { Option } from '@rc-component/select';\nimport '@rc-component/select/assets/index.css';\n\nexport default () =\u003e (\n  \u003cSelect\u003e\n    \u003cOption value=\"jack\"\u003ejack\u003c/Option\u003e\n    \u003cOption value=\"lucy\"\u003elucy\u003c/Option\u003e\n    \u003cOption value=\"yiminghe\"\u003eyiminghe\u003c/Option\u003e\n  \u003c/Select\u003e\n);\n```\n\n## API\n\n### Select props\n\n\u003c!-- prettier-ignore --\u003e\n| name | description | type | default |\n| --- | --- | --- | --- |\n| id | html id to set on the component wrapper | String | '' |\n| className | additional css class of root dom node | String | '' |\n| data-\\* | html data attributes to set on the component wrapper | String | '' |\n| prefixCls | prefix class | String | '' |\n| animation | dropdown animation name. only support slide-up now | String | '' |\n| transitionName | dropdown css animation name | String | '' |\n| choiceTransitionName | css animation name for selected items at multiple mode | String | '' |\n| dropdownMatchSelectWidth | whether dropdown's width is same with select | boolean | true |\n| dropdownClassName | additional className applied to dropdown | String | - |\n| dropdownStyle | additional style applied to dropdown | React.CSSProperties | {} |\n| dropdownAlign | additional align applied to dropdown | [AlignType](https://github.com/react-component/trigger/blob/728d7e92394aa4b3214650f743fc47e1382dfa68/src/interface.ts#L25-L80) | {} |\n| dropdownMenuStyle | additional style applied to dropdown menu | Object | React.CSSProperties |\n| notFoundContent | specify content to show when no result matches. | ReactNode | 'Not Found' |\n| tokenSeparators | separator used to tokenize on tag/multiple mode | string[]? |  |\n| open | control select open | boolean |  |\n| defaultOpen | control select default open | boolean |  |\n| placeholder | select placeholder | React Node |  |\n| showSearch | whether show search input in single mode | boolean \\| Object | true |\n| allowClear | whether allowClear | boolean | { clearIcon?: ReactNode } | false |\n| tags | when tagging is enabled the user can select from pre-existing options or create a new tag by picking the first choice, which is what the user has typed into the search box so far. | boolean | false |\n| tagRender | render custom tags. | (props: CustomTagProps) =\u003e ReactNode | - |\n| maxTagTextLength | max tag text length to show | number | - |\n| maxTagCount | max tag count to show | number | - |\n| maxTagPlaceholder | placeholder for omitted values | ReactNode/function(omittedValues) | - |\n| combobox | enable combobox mode(can not set multiple at the same time) | boolean | false |\n| multiple | whether multiple select | boolean | false |\n| disabled | whether disabled select | boolean | false |\n| optionLabelProp | render option value or option children as content of select | String: 'value'/'children' | 'value' |\n| defaultValue | initial selected option(s) | String \\| String[] | - |\n| value | current selected option(s) | String \\| String[] \\| {key:String, label:React.Node} \\| {key:String, label:React.Node}[] | - |\n| labelInValue | whether to embed label in value, see above value type. Not support `combobox` mode | boolean | false |\n| backfill | whether backfill select option to search input (Only works in single and combobox mode) | boolean | false |\n| onChange | called when select an option or input value change(combobox) | function(value, option:Option \\| Option[]) | - |\n| onBlur | called when blur | function | - |\n| onFocus | called when focus | function | - |\n| onPopupScroll | called when menu is scrolled | function | - |\n| onSelect | called when a option is selected. param is option's value and option instance | Function(value, option:Option) | - |\n| onDeselect | called when a option is deselected. param is option's value. only called for multiple or tags | Function(value, option:Option) | - |\n| onInputKeyDown | called when key down on input | Function(event) | - |\n| defaultActiveFirstOption | whether active first option by default | boolean | true |\n| getPopupContainer | container which popup select menu rendered into | function(trigger:Node):Node | function(){return document.body;} |\n| getInputElement | customize input element | function(): Element | - |\n| showAction | actions trigger the dropdown to show | String[]? | - |\n| autoFocus | focus select after mount | boolean | - |\n| prefix | specify the select prefix icon or text | ReactNode | - |\n| suffixIcon | specify the select arrow icon | ReactNode | - |\n| clearIcon | specify the clear icon | ReactNode | - |\n| removeIcon | specify the remove icon | ReactNode | - |\n| menuItemSelectedIcon | specify the item selected icon | ReactNode \\| (props: MenuItemProps) =\u003e ReactNode | - |\n| dropdownRender | render custom dropdown menu | (menu: React.Node) =\u003e ReactNode | - |\n| loading | show loading icon in arrow | boolean | false |\n| virtual | Disable virtual scroll | boolean | true |\n| direction | direction of dropdown | 'ltr' \\| 'rtl' | 'ltr' |\n| optionRender | Custom rendering options | (oriOption: FlattenOptionData\\\u003cBaseOptionType\\\u003e , info: { index: number }) =\u003e React.ReactNode | - |\n| labelRender  | Custom rendering label   |  (props: LabelInValueType) =\u003e React.ReactNode   | - |\n| maxCount | The max number of items can be selected | number | - |\n\n### Methods\n\n| name  | description               | parameters | return |\n| ----- | ------------------------- | ---------- | ------ |\n| focus | focus select programmably | -          | -      |\n| blur  | blur select programmably  | -          | -      |\n\n### showSearch\n\n| name | description | type | default |\n| --- | --- | --- | --- |\n| autoClearSearchValue | auto clear search input value when multiple select is selected/deselected | boolean | true |\n| filterOption | whether filter options by input value. default filter by option's optionFilterProp prop's value | boolean\\| (inputValue: string, option: Option) =\u003e boolean | true |\n| filterSort | Sort function for search options sorting, see [Array.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)'s compareFunction. | Function(optionA:Option, optionB: Option) | - |\n| optionFilterProp | which prop value of option will be used for filter if filterOption is true | String | 'value' |\n| searchValue | The current input \"search\" text | string | - |\n| onSearch | called when input changed | function | - |\n\n### Option props\n\n| name | description | type | default |\n| --- | --- | --- | --- |\n| className | additional class to option | String | '' |\n| disabled | no effect for click or keydown for this item | boolean | false |\n| key | if react want you to set key, then key is same as value, you can omit value | String/number | - |\n| value | default filter by this attribute. if react want you to set key, then key is same as value, you can omit value | String/number | - |\n| title | if you are not satisfied with auto-generated `title` which is show while hovering on selected value, you can customize it with this property | String | - |\n\n### OptGroup props\n\n| name | description | type | default |\n| --- | --- | --- | --- |\n| label | group label | String/React.Element | - |\n| key | - | String | - |\n| value | default filter by this attribute. if react want you to set key, then key is same as value, you can omit value | String | - |\n| className | same as `Option props` | String | '' |\n| title | same as `Option props` | String | - |\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nlocal example: http://localhost:9001/\n\nonline example: https://select-react-component.vercel.app/\n\n## Test Case\n\n```\nnpm test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\n## License\n\n@rc-component/select is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fselect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fselect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fselect/lists"}