{"id":46941159,"url":"https://github.com/kareemaly/react-items-carousel","last_synced_at":"2026-03-11T07:05:30.178Z","repository":{"id":37987058,"uuid":"87098183","full_name":"kareemaly/react-items-carousel","owner":"kareemaly","description":"Items Carousel Built with react-motion and styled-components","archived":false,"fork":false,"pushed_at":"2023-02-21T17:16:24.000Z","size":4881,"stargazers_count":207,"open_issues_count":6,"forks_count":50,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-06T21:01:41.767Z","etag":null,"topics":["carousel","mobile","react","react-component","responsive"],"latest_commit_sha":null,"homepage":"https://kareemaly.github.io/react-items-carousel/","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/kareemaly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"patreon":"bitriddler"}},"created_at":"2017-04-03T16:50:57.000Z","updated_at":"2024-08-15T20:41:37.000Z","dependencies_parsed_at":"2024-06-18T13:49:17.779Z","dependency_job_id":"bb92f195-9fb1-43c8-a39f-9dc40cd22048","html_url":"https://github.com/kareemaly/react-items-carousel","commit_stats":null,"previous_names":["bitriddler/react-items-carousel"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/kareemaly/react-items-carousel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareemaly%2Freact-items-carousel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareemaly%2Freact-items-carousel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareemaly%2Freact-items-carousel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareemaly%2Freact-items-carousel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kareemaly","download_url":"https://codeload.github.com/kareemaly/react-items-carousel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareemaly%2Freact-items-carousel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30373546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"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":["carousel","mobile","react","react-component","responsive"],"created_at":"2026-03-11T07:05:29.564Z","updated_at":"2026-03-11T07:05:30.172Z","avatar_url":"https://github.com/kareemaly.png","language":"JavaScript","funding_links":["https://patreon.com/bitriddler"],"categories":[],"sub_categories":[],"readme":"react-items-carousel\n---------------\n\n# Installation\n```\n$ npm install react-items-carousel --save\n```\n\n# [Demos](https://kareemaly.github.io/react-items-carousel/)\n\n# Example\n\n```javascript\nimport React, { useState } from 'react';\nimport ItemsCarousel from 'react-items-carousel';\n\nexport default () =\u003e {\n  const [activeItemIndex, setActiveItemIndex] = useState(0);\n  const chevronWidth = 40;\n  return (\n    \u003cdiv style={{ padding: `0 ${chevronWidth}px` }}\u003e\n      \u003cItemsCarousel\n        requestToChangeActive={setActiveItemIndex}\n        activeItemIndex={activeItemIndex}\n        numberOfCards={2}\n        gutter={20}\n        leftChevron={\u003cbutton\u003e{'\u003c'}\u003c/button\u003e}\n        rightChevron={\u003cbutton\u003e{'\u003e'}\u003c/button\u003e}\n        outsideChevron\n        chevronWidth={chevronWidth}\n      \u003e\n        \u003cdiv style={{ height: 200, background: '#EEE' }}\u003eFirst card\u003c/div\u003e\n        \u003cdiv style={{ height: 200, background: '#EEE' }}\u003eSecond card\u003c/div\u003e\n        \u003cdiv style={{ height: 200, background: '#EEE' }}\u003eThird card\u003c/div\u003e\n        \u003cdiv style={{ height: 200, background: '#EEE' }}\u003eFourth card\u003c/div\u003e\n      \u003c/ItemsCarousel\u003e\n    \u003c/div\u003e\n  );\n};\n```\n\n# Component Props\n\n| Property                 | Type                             | Default | Description                                                                           |\n|--------------------------|----------------------------------|---------|---------------------------------------------------------------------------------------|\n| children *               | node[]                           |         | The cards to render in the carousel. You must specify a height for each card.         |\n| requestToChangeActive *  | function                         |         | This function accepts the new activeItemIndex and should update your component state. |\n| activeItemIndex *        | int                              |         | This defines which item should be active.                                             |\n| numberOfCards            | number                           | 3       | Number of cards to show per slide.                                                    |\n| infiniteLoop             | boolean                          | false   | Enable infinite loop. see [Infinite loop limitations](#infinite-loop-limitations)                                                                  |\n| gutter                   | number                           | 0       | Space between cards.                                                                  |\n| showSlither              | boolean                          | false   | If true a slither of next card will be shown.                                         |\n| firstAndLastGutter       | boolean                          | false   | If true first and last cards will have twice the space.                               |\n| enablePlaceholder        | boolean                          | false   | If true, component will render `placeholderItem` until children are passed.           |\n| placeholderItem          | node                             | null    | If `enablePlaceholder` is true, this will be rendered until children are passed.      |\n| numberOfPlaceholderItems | number                           | 0       | This controls how many `placeholderItem` to render if `enablePlaceholder` is true.    |\n| activePosition           | enum ('left', 'center', 'right') | left    | The position of the active item.                                                      |\n| rightChevron             | node                             | null    | Right chevron node.                                                                   |\n| leftChevron              | node                             | null    | Left chevron node.                                                                    |\n| chevronWidth             | number                           | 0       | This value should be the width of left and right chevron.                             |\n| outsideChevron           | boolean                          | false   | If true the chevron will be rendered outside the carousel.                            |\n| alwaysShowChevrons       | boolean                          | false   | If true the chevrons will always be visible even if there were no cards to scroll.    |\n| slidesToScroll           | number                           | 1       | Number of cards to scroll when right and left chevrons are clicked.                   |\n| disableSwipe             | boolean                          | false   | Disables left and right swiping on touch devices.                                     |\n| onStateChange            | func                             | null    | This function will be called when state change with `{ isFirstScroll: Boolean, isLastScroll: Boolean }`. It can be used to fetch more data for example. |\n| classes                  | `{ wrapper: string, itemsWrapper: string, itemsInnerWrapper: string, itemWrapper: string, rightChevronWrapper: string, leftChevronWrapper: string }` | {}      | An object of classes to pass to the carousel inner elements |\n\n\n# Infinite Loop Limitations\nIf `infiniteLoop` was set to true, the following props are ignored\n- `activePosition`: will always be `left`\n- `alwaysShowChevrons`: will always be `true`\n\n# Contributing\nTo contribute, follow these steps:\n- Fork this repo.\n- Clone your fork.\n- Run `yarn`\n- Run `yarn start:gh`\n- Goto `localhost:9000`\n- Add your patch then push to your fork and submit a pull request\n\n# License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkareemaly%2Freact-items-carousel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkareemaly%2Freact-items-carousel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkareemaly%2Freact-items-carousel/lists"}