{"id":19425445,"url":"https://github.com/madzadev/image-slider","last_synced_at":"2025-04-24T16:31:36.262Z","repository":{"id":45403929,"uuid":"349162444","full_name":"madzadev/image-slider","owner":"madzadev","description":"📷 Image slider component for your pictures","archived":false,"fork":false,"pushed_at":"2024-02-14T18:47:01.000Z","size":11428,"stargazers_count":46,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T08:24:28.926Z","etag":null,"topics":["image","nextjs","react","slider"],"latest_commit_sha":null,"homepage":"https://image-slider-madza.vercel.app","language":"JavaScript","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/madzadev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-18T17:31:16.000Z","updated_at":"2025-03-15T23:21:12.000Z","dependencies_parsed_at":"2024-06-19T19:44:32.246Z","dependency_job_id":null,"html_url":"https://github.com/madzadev/image-slider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madzadev%2Fimage-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madzadev%2Fimage-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madzadev%2Fimage-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madzadev%2Fimage-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madzadev","download_url":"https://codeload.github.com/madzadev/image-slider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250663544,"owners_count":21467366,"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":["image","nextjs","react","slider"],"created_at":"2024-11-10T14:03:29.557Z","updated_at":"2025-04-24T16:31:35.810Z","avatar_url":"https://github.com/madzadev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React/NextJS Image slider\n\n![Slider Preview](https://images.ctfassets.net/zlsyc9paq6sa/6wX3r2sDGHSPjMEmIk8nSi/5f9e6581fe9b7bf9cf721ffb14aad6b2/image_slider_preview.gif)\n\n### Demo: [https://image-slider-madza.vercel.app](https://image-slider-madza.vercel.app)\n\n---\n\n## Requirements\n\nNode.js 18.x / 20+ is required.\n\nTested on React 18.2.0 and NextJS 14.1.0.\n\n## Installation\n\n```javascript\n npm install @madzadev/image-slider\n```\n\n## Usage\n\n```javascript\nimport Slider from \"@madzadev/image-slider\";\nimport \"@madzadev/image-slider/dist/index.css\";\n```\n\n```javascript\nconst images = [\n  { url: \"https://picsum.photos/seed/a/1600/900\" },\n  { url: \"https://picsum.photos/seed/b/1920/1080\" },\n  { url: \"https://picsum.photos/seed/c/1366/768\" },\n];\n```\n\n```javascript\n\u003cSlider imageList={images} width={1000} height={300} /\u003e\n```\n\n`imageList` is the mandatory prop and requires to pass in\nan array consisting of objects with `url` keys.\n\n`width` and `height` are mandatory props that\nset the dimension of the images shown.\n\n## Behavior\n\nThe default values of available options props are displayed.\n\n```javascript\n\u003cSlider\n  loop={true}\n  autoPlay={true}\n  autoPlayInterval={3000} // in milliseconds\n/\u003e\n```\n\n## Controls\n\nThe default values of available props are displayed.\n\n```javascript\n\u003cSlider showArrowControls={true} showDotControls={true} /\u003e\n```\n\n## Styling\n\nIf set, background color is displayed to fill the background if images are smaller than the slider wrapper.\n\n```javascript\n\u003cSlider bgColor=\"none\" /\u003e\n```\n\n## Final notes\n\nThe project is under MIT license, so be free to check it out and give\ncontributions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadzadev%2Fimage-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadzadev%2Fimage-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadzadev%2Fimage-slider/lists"}