{"id":16190978,"url":"https://github.com/maxmellon/react-simple-slider","last_synced_at":"2025-04-07T14:37:49.354Z","repository":{"id":86954333,"uuid":"65269914","full_name":"MaxMEllon/react-simple-slider","owner":"MaxMEllon","description":"React.js simple slider UI plugin.","archived":false,"fork":false,"pushed_at":"2016-08-16T22:55:35.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T17:15:44.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/MaxMEllon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-09T06:42:35.000Z","updated_at":"2018-03-03T14:01:18.000Z","dependencies_parsed_at":"2023-05-29T23:15:28.309Z","dependency_job_id":null,"html_url":"https://github.com/MaxMEllon/react-simple-slider","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Freact-simple-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Freact-simple-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Freact-simple-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Freact-simple-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxMEllon","download_url":"https://codeload.github.com/MaxMEllon/react-simple-slider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247671428,"owners_count":20976750,"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-10-10T07:44:36.902Z","updated_at":"2025-04-07T14:37:49.337Z","avatar_url":"https://github.com/MaxMEllon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-simple-slider\n\n`react-simple-slider` is *simple slider component for React.js*.\n\n![](https://raw.githubusercontent.com/MaxMEllon/demos/master/react-simple-slider/demo.gif)\n\n![](https://nodei.co/npm/react-simple-slider.png)\n\nUsage\n---\n\n`react-simple-slider` requires **React \u003e= 0.14.0**\n\n```\nnpm install --save react-simple-slider\n```\n\nThis Components is available on the default export.\n\n```\nimport Slider from 'react-simple-slider';\n```\n\nThis plugin is used babel-plugin-add-module-exports. so you not need `.default`\n\n```\nconst Slider = require('react-simple-slider');\n```\n\nAPI reference\n---\n\n- *Properties:*\n  - `max` - max value.\n    - **required**\n    - type: `number`\n    - Example: 100\n  - `width` - DOM width. (px)\n    - **required**\n    - type: `number`\n    - Example: 100\n  - `height` - DOM height. (px)\n    - **required**\n    - type: `number`\n    - Example: 10\n  - `backStyle` - background of bar the style\n    - **optional**\n    - type: `object`\n    - default: { backgroundColor: 'gray'}\n  - `frontStyle` - foreground of bar the style\n    - **optional**\n    - type: `object`\n    - default: { backgroundColor: 'aqua'}\n  - `default` - default value\n    - **optional**\n    - type: `number`\n    - default: 50\n    - Example: 10\n  - `onChange` - changes value callback function.\n    - **optional**\n    - type: `function`\n      - arguments of callback\n        - value\n          - type: number\n        - event\n          - type: object\n\n- *refs:*\n  - `setValue` - set value of slider and rerender components if different previous value.\n    - arguments\n      - value\n        - type: number\n  - `getValue` - get value of slider.\n    - return\n      - value\n        - type: number\n\nStart Development\n---\n\nClone this repository and Install node. Then,\n\n```\ncd path/to/react-simple-slider\nnpm install\nnpm run dev\n```\n\nLICENSE\n---\n\nCopyright © 2016 Kento TSUJI\n\nThe MIT License (MIT)\n\nSee: [LICENSE.txt](./LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmellon%2Freact-simple-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxmellon%2Freact-simple-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmellon%2Freact-simple-slider/lists"}