{"id":20145741,"url":"https://github.com/obsius/color-chooser","last_synced_at":"2026-01-07T14:06:28.023Z","repository":{"id":57203235,"uuid":"222357911","full_name":"obsius/color-chooser","owner":"obsius","description":"React component for selecting colors.","archived":false,"fork":false,"pushed_at":"2024-07-23T02:14:57.000Z","size":4382,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T23:36:41.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/obsius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-18T03:42:39.000Z","updated_at":"2024-07-23T02:15:00.000Z","dependencies_parsed_at":"2022-09-17T04:11:09.488Z","dependency_job_id":null,"html_url":"https://github.com/obsius/color-chooser","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/obsius%2Fcolor-chooser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsius%2Fcolor-chooser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsius%2Fcolor-chooser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsius%2Fcolor-chooser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obsius","download_url":"https://codeload.github.com/obsius/color-chooser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246017725,"owners_count":20710240,"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-11-13T22:17:57.554Z","updated_at":"2026-01-07T14:06:28.017Z","avatar_url":"https://github.com/obsius.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Color Chooser\n\nA `React` component for choosing colors.  \n\nProvides a widget for choosing a color, allows for editing and viewing of:\n- HEX\n- RGB\n- HSV\n- HSL\n- Alpha (pass property alpha to enable alpha channel)  \n\nDoes not include funtionality to open or close the widget, this integration must be done manually.  \n\nAll styling in `CSS`, override with your own style to customize.  \n\nOnly depends on `React`.\n\n## Screenshots\n![screenshot1](https://raw.githubusercontent.com/obsius/color-chooser/master/doc/example.png \"Example\")\n\n## Usage\n\n```js\n\u003cColorChooser\n    alpha                  // show the alpha layer\n\tcolor={'#00FF00'}      // css hex color\n\tonChange={callbackFn}  // pass a function to handle when the color changes\n/\u003e\n```\n\n### Props\n\nName | Required | Description\n-|-|-\n`color` | Yes | A hex value for the color to show. `#00FF00` or `#00FF00FF` (alpha)\n`onChange` | No | Callback for when the color is changed. Hex value of color.\n`alpha` | No | Show the alpha layer.\n\n## Example\n\n```js\nimport React from 'react';\nimport ColorChooser from 'color-chooser';\n\nimport 'color-chooser/lib/color-chooser.css';\nimport './my-color-chooser-style-override.css';\n\nclass App extends React.Component {\n\n    constructor(props) {\n        super(props);\n\t\t\n        this.state = {\n            color: '#00FF00'\n        };\n    }\n\n    handleColorChange = (color) =\u003e {\n        this.setState({\n            ...this.state,\n            color: color\n        });\n    };\n\n    render() {\n\n        let overlay = this.state.isOpen \u0026\u0026 (\n            \u003cdiv\u003e\n                \u003cColorChooser color={this.state.color} onChange={this.handleColorChange} /\u003e\n            \u003c/div\u003e\n        );\n\n        return (\n            \u003cdiv\u003e\n                \u003cdiv\u003e\n                     { overlay }\n                \u003c/div\u003e\n            \u003c/div\u003e\n        );\n    }\n}\n```\n\n## Contributing\nFeel free to make changes and submit pull requests whenever.\n\n\n## License\nColorChooser uses the [MIT](https://opensource.org/licenses/MIT) license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsius%2Fcolor-chooser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobsius%2Fcolor-chooser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsius%2Fcolor-chooser/lists"}