{"id":26685945,"url":"https://github.com/wangzuo/react-input-color","last_synced_at":"2025-03-26T11:01:15.407Z","repository":{"id":29211467,"uuid":"32742993","full_name":"swiftcarrot/react-input-color","owner":"swiftcarrot","description":"React color picker","archived":false,"fork":false,"pushed_at":"2023-04-21T22:22:45.000Z","size":1715,"stargazers_count":245,"open_issues_count":10,"forks_count":35,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T10:08:26.316Z","etag":null,"topics":["color-picker","react","react-component"],"latest_commit_sha":null,"homepage":"https://react-input-color.caitou.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swiftcarrot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-03-23T16:04:01.000Z","updated_at":"2025-02-02T11:21:48.000Z","dependencies_parsed_at":"2023-07-14T00:44:54.972Z","dependency_job_id":null,"html_url":"https://github.com/swiftcarrot/react-input-color","commit_stats":{"total_commits":144,"total_committers":9,"mean_commits":16.0,"dds":0.09722222222222221,"last_synced_commit":"5a7ae2794351f424aaa880fb529f3952fe83bf28"},"previous_names":["wangzuo/react-input-color"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Freact-input-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Freact-input-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Freact-input-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Freact-input-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swiftcarrot","download_url":"https://codeload.github.com/swiftcarrot/react-input-color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245641426,"owners_count":20648641,"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":["color-picker","react","react-component"],"created_at":"2025-03-26T11:01:14.832Z","updated_at":"2025-03-26T11:01:15.377Z","avatar_url":"https://github.com/swiftcarrot.png","language":"JavaScript","funding_links":[],"categories":["UI Components","Uncategorized","\u003csummary\u003eUI Components\u003c/summary\u003e","Demos"],"sub_categories":["Form Components","Uncategorized"],"readme":"# react-input-color\n\n[![npm](https://img.shields.io/npm/v/react-input-color.svg)](https://www.npmjs.com/package/react-input-color)\n[![npm](https://img.shields.io/npm/dm/react-input-color.svg)](https://www.npmjs.com/package/react-input-color)\n[![Build Status](https://travis-ci.org/swiftcarrot/react-input-color.svg?branch=master)](https://travis-ci.org/swiftcarrot/react-input-color)\n[![codecov](https://codecov.io/gh/swiftcarrot/react-input-color/branch/master/graph/badge.svg)](https://codecov.io/gh/swiftcarrot/react-input-color)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\nReact input color component with hsv color picker\n\nThe color picker is inspired by the [sketch](https://www.sketchapp.com/) color picker\n\n![screenshot](https://raw.githubusercontent.com/swiftcarrot/react-input-color/master/screenshot.png)\n\nStarting from v2, this component is rewritten with [emotion](https://emotion.sh/) and it doesnot require any external css file.\n\n### Installation\n\n```sh\nnpm install react-input-color --save\nyarn add react-input-color\n```\n\n### Storybook Demo\n\n[https://react-input-color.caitouyun.com](https://react-input-color.caitouyun.com)\n\n### Usage\n\nThe `initialValue` property supports 6 (`#RRGGBB`) and 8 (`#RRGGBBAA`) digits hex value.\n\n```javascript\nimport React from 'react';\nimport InputColor from 'react-input-color';\n\nfunction App() {\n  const [color, setColor] = React.useState({});\n\n  return (\n    \u003cdiv\u003e\n      \u003cInputColor\n        initialValue=\"#5e72e4\"\n        onChange={setColor}\n        placement=\"right\"\n      /\u003e\n      \u003cdiv\n        style={{\n          width: 50,\n          height: 50,\n          marginTop: 20,\n          backgroundColor: color.rgba,\n        }}\n      /\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\n- This component is built with [react-input-slider](https://github.com/swiftcarrot/react-input-slider) and [react-input-number](https://github.com/swiftcarrot/react-input-number).\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangzuo%2Freact-input-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangzuo%2Freact-input-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangzuo%2Freact-input-color/lists"}