{"id":19298984,"url":"https://github.com/javierbyte/react-color-range","last_synced_at":"2026-04-17T14:37:06.524Z","repository":{"id":45086867,"uuid":"445932733","full_name":"javierbyte/react-color-range","owner":"javierbyte","description":"Super tiny color input ranges for React.","archived":false,"fork":false,"pushed_at":"2022-05-03T19:08:22.000Z","size":3038,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T01:16:21.441Z","etag":null,"topics":["color","color-picker","input","react-component"],"latest_commit_sha":null,"homepage":"https://javier.xyz/react-color-range/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javierbyte.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-08T21:31:38.000Z","updated_at":"2025-02-11T15:51:32.000Z","dependencies_parsed_at":"2022-09-04T17:10:39.326Z","dependency_job_id":null,"html_url":"https://github.com/javierbyte/react-color-range","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/javierbyte/react-color-range","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Freact-color-range","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Freact-color-range/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Freact-color-range/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Freact-color-range/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javierbyte","download_url":"https://codeload.github.com/javierbyte/react-color-range/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Freact-color-range/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31933665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["color","color-picker","input","react-component"],"created_at":"2024-11-09T23:09:42.326Z","updated_at":"2026-04-17T14:37:06.506Z","avatar_url":"https://github.com/javierbyte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-color-range \u0026middot; [![](https://badgen.net/bundlephobia/minzip/react-color-range@latest)](https://bundlephobia.com/package/react-color-range)\n\nTiny color input for React, made with native input ranges. `react-color-range`\nleverages the native `input type=\"range\"` and CSS linear gradients to reduce the\nbundle size.\n\n[![react-blur](./website/public/react-color-range.jpg)](https://javier.xyz/react-color-range/)\n\n## Usage\n\n```jsx\nimport { HueSelector } from 'react-color-range';\nimport 'react-color-range/style.css';\n\n[...]\n\n// with hex colors\n\u003cHueSelector\n  value={colorHex}\n  onChange={color =\u003e {\n    changeColorHook(color.hex); // also `color.hsl`, `color.h`, `color.s` and `color.l`\n  }}\n/\u003e\n\n\u003cSaturationSelector\n  value={colorHex}\n  onChange={color =\u003e {\n    changeColorHook(color.hex);\n  }}\n/\u003e\n\n\u003cLuminositySelector\n  value={colorHex}\n  onChange={color =\u003e {\n    changeColorHook(color.hex);\n  }}\n/\u003e\n```\n\nEach of the three components accepts the following props:\n\n- `value`: Either a hex color (example: `#FFFFFF`) or hsl color expressed with\n  degrees for hue and percentages for saturation and luminosity separated by\n  commas (example: `hsl(0, 100%, 50%)`). Please note that using hsl colors as\n  the source is preferred to prevent color resolution lost on high and low\n  luminosities.\n- `onChange`: Function that will return an object when the color is changed.\n  - On change response: And object with the following properties:\n    - `hsl`: String. New hsl color\n    - `hex`: String. New hex color\n    - `h`, `s`, `l`: Int. Hue, saturation and luminosity, components of the hsl\n      color\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierbyte%2Freact-color-range","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavierbyte%2Freact-color-range","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierbyte%2Freact-color-range/lists"}