{"id":26720193,"url":"https://github.com/egodact/react-multi-bar-slider","last_synced_at":"2026-03-09T07:31:45.916Z","repository":{"id":30962753,"uuid":"126155698","full_name":"egodact/react-multi-bar-slider","owner":"egodact","description":"Slider component with multiple bars for React","archived":false,"fork":false,"pushed_at":"2022-12-09T02:24:36.000Z","size":1781,"stargazers_count":3,"open_issues_count":13,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-17T21:56:45.991Z","etag":null,"topics":["babel","multi-slider","react","react-component","reactjs","slider","webpack"],"latest_commit_sha":null,"homepage":"https://react-multi-bar-slider-demo.netlify.com/","language":"JavaScript","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/egodact.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":"2018-03-21T09:38:21.000Z","updated_at":"2020-03-12T17:22:47.000Z","dependencies_parsed_at":"2023-01-14T18:15:23.257Z","dependency_job_id":null,"html_url":"https://github.com/egodact/react-multi-bar-slider","commit_stats":null,"previous_names":["rafaelklaessen/react-multi-bar-slider"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/egodact/react-multi-bar-slider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egodact%2Freact-multi-bar-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egodact%2Freact-multi-bar-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egodact%2Freact-multi-bar-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egodact%2Freact-multi-bar-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egodact","download_url":"https://codeload.github.com/egodact/react-multi-bar-slider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egodact%2Freact-multi-bar-slider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"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":["babel","multi-slider","react","react-component","reactjs","slider","webpack"],"created_at":"2025-03-27T18:32:37.479Z","updated_at":"2026-03-09T07:31:45.898Z","avatar_url":"https://github.com/egodact.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-multi-bar-slider\nSlider component with multiple bars for React.\n\n[Demo repo](https://github.com/rafaelklaessen/react-multi-bar-slider-demo)\n\n![Multi slider screenshot](https://github.com/rafaelklaessen/react-multi-bar-slider/raw/master/screenshots/screenshot.png \"Screenshot of the multi slider demo\")\n\n## Install\n`yarn add react-multi-bar-slider` or `npm install --save react-multi-bar-slider`\n\n## Usage\nSee the [demo repo](https://github.com/rafaelklaessen/react-multi-bar-slider-demo).\n\n### Basic example\n```javascript\nimport MultiSlider, { Progress } from 'react-multi-bar-slider';\n\nexport default class App extends Component {\n  state = {\n    progress: 10\n  };\n\n  handleSlide = newProgress =\u003e this.setState({ progress: newProgress });\n\n  render() {\n    return (\n      \u003cMultiSlider onSlide={this.handleSlide}\u003e\n        \u003cProgress color=\"green\" progress={this.state.progress} /\u003e\n        \u003cProgress color=\"purple\" progress={45} /\u003e\n      \u003c/MultiSlider\u003e\n    );\n  }\n}\n```\n\n### Advanced example\n```javascript\nimport MultiSlider, { Progress, Dot } from 'react-multi-bar-slider';\n\nexport default class App extends Component {\n  state = {\n    progress: 10\n  };\n\n  handleSlide = newProgress =\u003e this.setState({ progress: newProgress });\n\n  render() {\n    return (\n      \u003cMultiSlider\n        width={600}\n        height={20}\n        slidableZoneSize={40}\n        backgroundColor=\"bisque\"\n        equalColor=\"blue\"\n        style={{ marginBottom: 40 }}\n        onSlide={this.handleSlide}\n        onDragStart={progress =\u003e console.log(`Started dragging: ${progress}%`)}\n        onDragStop={progress =\u003e console.log(`Stopped dragging: ${progress}%`)}\n        roundedCorners\n        reversed\n      /\u003e\n        \u003cProgress color=\"green\" progress={this.state.progress}\u003e\n          \u003cDot color=\"grey\" /\u003e\n        \u003c/Progress\u003e\n        \u003cProgress color=\"purple\" progress={45}\u003e\n          \u003cDot color=\"grey\" /\u003e\n        \u003c/Progress\u003e\n      \u003c/MultiSlider\u003e\n    );\n  }\n}\n```\n\n## Props\n`*` = Required\n\n### `MultiSlider`\nProp | Description | Type | Default\n---- | ----------- | ---- | -------\n`width` | Width of the slider | `number` or `string` | `100%`\n`height` | Height of the slider | `number` or `string` | `14px`\n`slidableZoneSize` | Size of the zone in which sliders can be dragged | `number` or `string` | `7px`,\n`backgroundColor` | Background color of the slider | `string` | `#EEEEEE`\n`equalColor` | Color of all bars when their values are equal | `string` |\n`style` | Custom style for the slider \u003cbr\u003e *Signature:* \u003cbr\u003e `function(props: object) =\u003e object` | `object` or `function` | `{}`\n`onSlide` | Callback that is fired when the progress was set \u003cbr\u003e *Signature:* \u003cbr\u003e `function(progress: number) =\u003e void` | `function` |\n`onDragStart` | Callback function that is fired when the slider has begun to move \u003cbr\u003e *Signature:* \u003cbr\u003e `function(progress: number) =\u003e void` | `function` |\n`onDragStop`| Callback function that is fired when the slide has stopped moving \u003cbr\u003e *Signature:* \u003cbr\u003e `function(progress: number) =\u003e void` | `function` |\n`roundedCorners` | When set to `true`, the slider has rounded corners | `bool` | `false`\n`reversed` | When set to `true`, the slider is reversed | `bool` | `false`\n`readOnly` | When set to `true`, the slider can't be updated | `bool` | `false`\n`children*` |  The progress bars that are shown in the slider (or any other children) | `node` |\n\nAll other props (not documented here) will be passed on to the root element.\n\n### `Progress`\nProp | Description | Type | Default\n----- | ----------- | ---- | -------\n`color*` | Color of the progress bar | `string` |\n`progress*` | Progress of the progress bar | `number` |\n`style` | Custom style for the progress bar \u003cbr\u003e *Signature:* \u003cbr\u003e `function(props: object) =\u003e object` | `object` or `function` |\n`children` | The slider dot (or any other children) | `node` |\n\nAll other props (not documented here) will be passed on to the root element.\n\n### `Dot`\nProp | Description | Type | Default\n----- | ----------- | ---- | -------\n`width` | Width of the dot | `number` or `string` | `50` when the dot has an icon, `28` if not\n`height` | Height of the dot | `number` or `string` | `50` when the dot has an icon, `28` if not\n`color` | Color of the dot | `string` |\n`icon` | URL of the image to use as dot icon | `string` |\n`style` | Custom style for the dot \u003cbr\u003e *Signature:* \u003cbr\u003e `function(props: object) =\u003e object` | `object` or `function` |\n`iconStyle` | Custom style for the dot icon \u003cbr\u003e *Signature:* \u003cbr\u003e `function(props: object) =\u003e object` | `object` or `function` |\n`children` | Children of the dot | `node` |\n\nAll other props (not documented here) will be passed on to the root element.\n\n#### How custom styles work\nWhen a function is passed to a `style` prop rather than an object, it is expected to return an object.\nThe style function will be called with all props that that component has (except for the `style` and `children` props and any internal callbacks). The return value of the function will be used as style (see the [demo repo](https://github.com/rafaelklaessen/react-multi-bar-slider-demo) for an example).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegodact%2Freact-multi-bar-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegodact%2Freact-multi-bar-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegodact%2Freact-multi-bar-slider/lists"}