{"id":30580539,"url":"https://github.com/react-component/color-picker","last_synced_at":"2026-02-27T03:06:28.756Z","repository":{"id":48844577,"uuid":"38540178","full_name":"react-component/color-picker","owner":"react-component","description":"React ColorPicker","archived":false,"fork":false,"pushed_at":"2025-03-21T07:27:12.000Z","size":8116,"stargazers_count":451,"open_issues_count":13,"forks_count":93,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-08-22T03:56:33.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://react-component.github.io/color-picker/","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":null,"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}},"created_at":"2015-07-04T16:27:56.000Z","updated_at":"2025-07-21T16:57:52.000Z","dependencies_parsed_at":"2023-11-26T01:27:43.025Z","dependency_job_id":"08e86ca1-4f9c-4fd1-93bb-4d21f975ef23","html_url":"https://github.com/react-component/color-picker","commit_stats":{"total_commits":144,"total_committers":21,"mean_commits":6.857142857142857,"dds":"0.35416666666666663","last_synced_commit":"e0d6ee525123b22cd077b995447e3082817579fd"},"previous_names":["react-component/react-colors-picker","noyobo/react-colors-picker"],"tags_count":64,"template":false,"template_full_name":null,"purl":"pkg:github/react-component/color-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fcolor-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fcolor-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fcolor-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fcolor-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/color-picker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fcolor-picker/sbom","scorecard":{"id":765345,"data":{"date":"2025-08-11","repo":{"name":"github.com/react-component/color-picker","commit":"01944ce24a030edc5b91b2be3c518e82f36464f7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":2,"reason":"Found 6/30 approved changesets -- score normalized to 2","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":"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Warn: no topLevel permission defined: .github/workflows/preview.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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:5: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/color-picker/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/preview.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/color-picker/preview.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/preview.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/color-picker/preview.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 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":"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":"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 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:36:57.098Z","repository_id":48844577,"created_at":"2025-08-23T00:36:57.098Z","updated_at":"2025-08-23T00:36:57.098Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272636164,"owners_count":24967983,"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-08-29T02:00:10.610Z","response_time":87,"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":[],"created_at":"2025-08-29T05:36:47.332Z","updated_at":"2026-02-27T03:06:28.728Z","avatar_url":"https://github.com/react-component.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @rc-component/color-picker\n\nReact Color Picker.\n\n[![NPM version][npm-image]][npm-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Test coverage][codecov-image]][codecov-url] [![npm download][download-image]][download-url] [![bundle size][bundlephobia-image]][bundlephobia-url]\n\n[npm-image]: http://img.shields.io/npm/v/@rc-component/color-picker.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/@rc-component/color-picker\n[github-actions-image]: https://github.com/react-component/color-picker/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/color-picker/actions\n[coveralls-image]: https://img.shields.io/coveralls/react-component/color-picker.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/color-picker?branch=master\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/color-picker/master.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/react-component/color-picker/branch/master\n[david-url]: https://david-dm.org/react-component/color-picker\n[david-image]: https://david-dm.org/react-component/color-picker/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/color-picker?type=dev\n[david-dev-image]: https://david-dm.org/react-component/color-picker/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/@rc-component/color-picker.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@rc-component/color-picker\n[bundlephobia-url]: https://bundlephobia.com/result?p=@rc-component/color-picker\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@rc-component/color-picker\n\n## install\n\n[![@rc-component/color-picker](https://nodei.co/npm/@rc-component/color-picker.png)](https://npmjs.org/package/@rc-component/color-picker)\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8000\n\n## Usage\n\n```js\nimport ColorPicker from '@rc-component/color-picker';\nimport '@rc-component/color-picker/assets/index.css';\n\nexport default () =\u003e \u003cColorPicker /\u003e;\n```\n\n## API\n\n\u003c!-- prettier-ignore --\u003e\n| Property | Description | Type | Default |\n| :-- | :-- | :-- | :-- |\n| value | Value of color | string \\| `Color` | - |\n| defaultValue | Default value of color | string \\| `Color` | - |\n| onChange | Callback when `value` is changed | `(value: Color, type: hue \\| alpha) =\u003e void` | - |\n| onChangeComplete | Callback when `drag` is stop | `(value: Color, type: hue \\| alpha) =\u003e void` | - |\n| disabled | Disabled ColorPicker | boolean | false |\n| disabledAlpha | Disabled alpha slider | boolean | false |\n| panelRender | Custom panel render | `(panel: React.ReactElement) =\u003e React.ReactElement` | - |\n\n### Color\n\n\u003c!-- prettier-ignore --\u003e\n| Property | Description | Type | Default |\n| :-- | :-- | :-- | :-- |\n| toHexString | Convert to `hex` format color string, like `#ffffff` | `() =\u003e string` | - |\n| toHsb | Convert to `hsb` object, like `{ h: 0, s: 0, b: 0, a: 0 }`  | `() =\u003e ({ h: number, s: number, b: number, a number })` | - |\n| toHsbString | Convert to `hsb` format color string, like `hsba(0, 0%, 0%, 0)` | `() =\u003e string` | - |\n| toRgb | Convert to `rgb` object,  like `{ r: 0, g: 0, b: 0, a: 0 }` | `() =\u003e ({ r: number, g: number, b: number, a number })` | - |\n| toRgbString | Convert to `rgb` format color string, like `rgba(0, 0, 0, 0)` | `() =\u003e string` | - |\n\n## Test Case\n\n```\nnpm test\nor\nnpm run coverage\n```\n\n## License\n\n@rc-component/color-picker is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fcolor-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fcolor-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fcolor-picker/lists"}