{"id":19419353,"url":"https://github.com/pixelize/react-slider-measure","last_synced_at":"2025-04-24T14:31:43.786Z","repository":{"id":35109429,"uuid":"207570847","full_name":"pixelize/react-slider-measure","owner":"pixelize","description":"react-slider-measure is a customizable, pure JavaScript package, that provides a smooth user interface for picking a value within a measure styled bar","archived":false,"fork":false,"pushed_at":"2023-01-04T09:45:32.000Z","size":3027,"stargazers_count":4,"open_issues_count":27,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T18:49:36.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://react-slider-measure.now.sh","language":"TypeScript","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/pixelize.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-09-10T13:43:30.000Z","updated_at":"2020-04-09T13:04:06.000Z","dependencies_parsed_at":"2023-01-15T14:00:43.188Z","dependency_job_id":null,"html_url":"https://github.com/pixelize/react-slider-measure","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelize%2Freact-slider-measure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelize%2Freact-slider-measure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelize%2Freact-slider-measure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelize%2Freact-slider-measure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixelize","download_url":"https://codeload.github.com/pixelize/react-slider-measure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250643423,"owners_count":21464172,"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-10T13:17:23.214Z","updated_at":"2025-04-24T14:31:43.517Z","avatar_url":"https://github.com/pixelize.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-slider-measure\n\n## Description\n\n`react-slider-measure` is a customizable, pure JavaScript package, that provides a smooth user interface for picking a value within a measure styled bar.\n\n### Demo\n\n[Demo](https://react-slider-measure.now.sh/)\n\nAlso: see gatsby/pages folder. You can run it locally using [Gatsby](https://www.gatsbyjs.org/) just clone the repos and use `yarn start` in your CLI.\n\n## Installation\n\n| yarn | npm\n| -------------------- | -------------------------------------- |\n| yarn add react-slider-measure   | npm add react-slider-measure |\n\n## Usage\n\n```js\nimport React, { useState } from \"react\";\nimport { Slider } from \"react-slider-measure\";\n\nconst App = () =\u003e {\n\tconst [value, setValue] =  useState(0);\n\n\treturn (\n\t\t\u003cdiv\u003e\n\t\t\t\u003cSlider\n\t\t\t\tactiveColor=\"#5a2cc9\"\n\t\t\t\tsteps={100}\n\t\t\t\tvalue={value}\n\t\t\t\tonChange={setValue}\n\t\t\t/\u003e\n\t\t\u003c/div\u003e\n\t)\n}\n```\n\n## API\n\n| Props                      | Type           | Required    | Default                                                                                                    | Description                                                                                                         |\n| --------------------------- | -------------- | ----------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |\n| steps              | string         | true       | 40                                                                                                     | Defines the total numbers on the slider                                                      |\n| value            | number        | true       |               -                                                                                        | Slider current value                                                                    |\n| onChange                | function         | true       | -                                                                                                       | Retrieve the selected value from the slider                                                                       |\n| activeColor | string | false       | #5a2cc9 | Active color for the selected value\n\n## Crédits\nBuild at Igloo with [@loicmahieu](https://github.com/oicmahieu).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelize%2Freact-slider-measure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelize%2Freact-slider-measure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelize%2Freact-slider-measure/lists"}