{"id":23163751,"url":"https://github.com/abhinavrobinson/next-range-slider","last_synced_at":"2025-06-10T21:11:01.717Z","repository":{"id":57749139,"uuid":"523696195","full_name":"AbhinavRobinson/next-range-slider","owner":"AbhinavRobinson","description":"Minimal react component for range slider made for NextJS.","archived":false,"fork":false,"pushed_at":"2025-03-10T07:16:40.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-04T03:21:45.190Z","etag":null,"topics":["cjs","esm","hacktoberfest","javascript","nextjs","polyfill","range-slider","react","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/next-range-slider","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbhinavRobinson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2022-08-11T11:24:46.000Z","updated_at":"2025-03-10T07:15:40.000Z","dependencies_parsed_at":"2025-04-21T12:47:15.715Z","dependency_job_id":null,"html_url":"https://github.com/AbhinavRobinson/next-range-slider","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhinavRobinson%2Fnext-range-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhinavRobinson%2Fnext-range-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhinavRobinson%2Fnext-range-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhinavRobinson%2Fnext-range-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbhinavRobinson","download_url":"https://codeload.github.com/AbhinavRobinson/next-range-slider/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbhinavRobinson%2Fnext-range-slider/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259152603,"owners_count":22813217,"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":["cjs","esm","hacktoberfest","javascript","nextjs","polyfill","range-slider","react","typescript"],"created_at":"2024-12-18T00:30:29.235Z","updated_at":"2025-06-10T21:10:58.611Z","avatar_url":"https://github.com/AbhinavRobinson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next Range Slider\n\n![dow](https://badgen.net/npm/dt/next-range-slider)\n![lis](https://badgen.net/npm/license/next-range-slider)\n![min](https://badgen.net/bundlephobia/min/next-range-slider)\n![miz](https://badgen.net/bundlephobia/minzip/next-range-slider)\n![dep](https://badgen.net/bundlephobia/dependency-count/next-range-slider)\n![tree](https://badgen.net/bundlephobia/tree-shaking/next-range-slider)\n\n[![Preview Image](docs/images/slider.jpg)](https://github.com/AbhinavRobinson/next-range-slider/blob/main/docs/images/slider.jpg)\n\nA minimal range slider component for React, compatible with NextJS.\n\n## Installation\n\nInstall using your favorite package manager:\n```bash\nnpm install next-range-slider\n```\n\nAdd CSS import to your file or project root (nextjs):\n```tsx\nimport 'next-range-slider/dist/main.css';\n```\n\nImport inside component JSX/TSX:\n\n```tsx\nimport { RangeSlider } from 'next-range-slider';\n\n...\n\nconst [low, setLow] = useState(-1000);\nconst [high, setHigh] = useState(1000);\n\n...\n\n\u003cRangeSlider\n    min={-1000}\n    max={1000}\n    step={100}\n    options={{\n      leftInputProps: {\n        value: low,\n        onChange: (e) =\u003e setLow(Number(e.target.value)),\n      },\n      rightInputProps: {\n        value: high,\n        onChange: (e) =\u003e setHigh(Number(e.target.value)),\n      },\n    }}\n/\u003e\n...\n```\n\n## Prop Types\n\n```typescript\ntype RangeSliderProps = React.DetailedHTMLProps\u003cReact.HTMLAttributes\u003cHTMLDivElement\u003e, HTMLDivElement\u003e \u0026 {\n  min: number;\n  max: number;\n  step?: number;\n  options?: RangeSliderOptions;\n};\n\ntype RangeSliderOptions = {\n  theme?: Themes;\n  thumb?: ThumbProps;\n  track?: TrackProps;\n  range?: RangeProps;\n  leftInputProps?: ReactInputProps;\n  rightInputProps?: ReactInputProps;\n};\n\ntype ReactInputProps = React.DetailedHTMLProps\u003cReact.InputHTMLAttributes\u003cHTMLInputElement\u003e, HTMLInputElement\u003e;\n\ntype RangeProps = {\n  background?: string;\n  border?: string;\n};\n\ntype ThumbProps = {\n  background?: string;\n  focusBackground?: string;\n  width?: string;\n  height?: string;\n  /** defauts to translateY(-25%) in preset theme */\n  transform?: string;\n  borderRadius?: string;\n  border?: string;\n};\n\ntype TrackProps = {\n  background?: string;\n  width?: string;\n  height?: string;\n  transform?: string;\n  borderRadius?: string;\n  border?: string;\n  margin?: string;\n  padding?: string;\n};\n```\n\n## Extending Functionality\n\nThe component is isolated to the component file `src/components/RangeSlider.tsx` and it's CSS file `main.css`. You can clone and add your own default theme, as well as extend by adding more themes and tweaking css files.\n\n## Authors\n\n- [@AbhinavRobinson](https://github.com/AbhinavRobinson)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinavrobinson%2Fnext-range-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhinavrobinson%2Fnext-range-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinavrobinson%2Fnext-range-slider/lists"}