{"id":19493729,"url":"https://github.com/abdullahceylan/ac-react-simple-image-slider","last_synced_at":"2025-04-25T20:31:29.539Z","repository":{"id":57172261,"uuid":"162845132","full_name":"abdullahceylan/ac-react-simple-image-slider","owner":"abdullahceylan","description":"A simple React image slider built with React.js, emotion and hooks","archived":false,"fork":false,"pushed_at":"2019-03-08T15:31:55.000Z","size":4007,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T16:39:03.001Z","etag":null,"topics":["hooks","image","image-gallery","imagegallery","react","reactjs","reactjs-components","slider","slideshow","styled-components"],"latest_commit_sha":null,"homepage":"https://abdullahceylan.github.io/ac-react-simple-image-slider","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/abdullahceylan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-12-22T21:54:17.000Z","updated_at":"2023-02-27T22:50:19.000Z","dependencies_parsed_at":"2022-08-24T13:30:58.339Z","dependency_job_id":null,"html_url":"https://github.com/abdullahceylan/ac-react-simple-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/abdullahceylan%2Fac-react-simple-image-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahceylan%2Fac-react-simple-image-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahceylan%2Fac-react-simple-image-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahceylan%2Fac-react-simple-image-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahceylan","download_url":"https://codeload.github.com/abdullahceylan/ac-react-simple-image-slider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250890432,"owners_count":21503492,"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":["hooks","image","image-gallery","imagegallery","react","reactjs","reactjs-components","slider","slideshow","styled-components"],"created_at":"2024-11-10T21:27:06.631Z","updated_at":"2025-04-25T20:31:28.615Z","avatar_url":"https://github.com/abdullahceylan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ac-react-simple-image-slider\n\n\u003e A simple image slider built with React, emotion and hooks\n\n[![NPM](https://img.shields.io/npm/v/ac-react-simple-image-slider.svg)](https://www.npmjs.com/package/ac-react-simple-image-slider) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n\n## Install\n\n```bash\nnpm install --save ac-react-simple-image-slider\n```\n\nor\n\n```bash\nyarn add ac-react-simple-image-slider\n```\n\n## Usage\n\n![Example usage](https://raw.githubusercontent.com/abdullahceylan/ac-react-simple-image-slider/master/example.png)\n\u003cdetails\u003e\n\u003csummary\u003eView raw code\u003c/summary\u003e\n\n```jsx\nimport React from 'react';\nimport ImageSlider from 'ac-react-simple-image-slider';\n\nconst imageData = [\n  {\n    src: 'https://placeimg.com/640/480/any',\n    title: 'Image 1'\n  },\n  {\n    src: 'https://placeimg.com/640/480/any',\n    title: 'Image 2'\n  }\n];\n\nconst Example = () =\u003e (\n  \u003cImageSlider height='640px' width='480px' data={imageData} /\u003e\n);\n```\n\n\u003c/details\u003e\n\n### Props\n\n| Name                | Type            | Default | Description                                                                                              |\n| ------------------- | --------------- | ------- | -------------------------------------------------------------------------------------------------------- |\n| initialIndex        | `number`        | `0`     | The index of the initial slide image. `0` points to first slide image.                                   |\n| height              | `string`        | `100%`  | Custom slider height. e.g.: `640px`                                                                      |\n| width               | `string`        | `100%`  | Custom slider width. e.g.: `480px`                                                                       |\n| data                | `arrayOfObject` | `[]`    | (required) Slider images array.                                                                          |\n|  -\u003e   src             | `string` | `-`    | (required) Slider item image URL.                                                                 |\n|  -\u003e   title             | `string` | `-`    | (required) Slider item title. This also be used for alternative image text.                                                                          |\n| showArrows          | `bool`          | `true`  | Whether the navigation arrows will display or not                                                        |\n| showDots            | `bool`          | `true`  | Whether the dots will display bottom of the slider or not                                                |\n| autoPlay            | `bool`          | `true`  | (optional) Whether the slideshow should start automatically                                              |\n| duration            | `number`        | `3`     | (optional) How long wait (seconds) before the next transition starts. It also uses by animation duration |\n| infinite            | `bool`          | `false` | (optional) Whether the transition should loop throughout                                                                                       |\n| elementWrapperStyles            | `object`          | `null` | (optional) Slide image wrapper styles                                                                                       |\n| itemStyles            | `object`          | `null` | (optional) Slide image style                                                                                       |\n\n## Todo\n\n- [x] Tests\n- [ ] Add following props:\n\n| Name         | Type   | Default | Description                   |\n| ------------ | ------ | ------- | ----------------------------- |\n| dotComponent | `node` | `null`  | Custom component for the dots |                                       |\n| leftArrowComponent  | `string`        | `\u003c`     | Custom left arrow                                                                                        |\n| rightArrowComponent | `string`        | `\u003e`     | Custom right arrow    \n\n## License\n\nMIT © [abdullahceylan](https://github.com/abdullahceylan)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahceylan%2Fac-react-simple-image-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahceylan%2Fac-react-simple-image-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahceylan%2Fac-react-simple-image-slider/lists"}