{"id":21877017,"url":"https://github.com/aexol-studio/rerousel-react-carousel","last_synced_at":"2025-04-05T22:10:07.362Z","repository":{"id":41889283,"uuid":"329613176","full_name":"aexol-studio/rerousel-react-carousel","owner":"aexol-studio","description":"Simplest infinite React carousel","archived":false,"fork":false,"pushed_at":"2025-02-02T14:05:12.000Z","size":989,"stargazers_count":120,"open_issues_count":5,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T21:09:01.284Z","etag":null,"topics":["carousel","react"],"latest_commit_sha":null,"homepage":"https://rerousel.netlify.app","language":"TypeScript","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/aexol-studio.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-01-14T12:46:15.000Z","updated_at":"2025-01-02T09:12:48.000Z","dependencies_parsed_at":"2025-01-30T21:25:48.026Z","dependency_job_id":"b883be30-1b2d-4d52-862d-4ba5e220a01a","html_url":"https://github.com/aexol-studio/rerousel-react-carousel","commit_stats":null,"previous_names":["aexol-studio/rerousel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aexol-studio%2Frerousel-react-carousel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aexol-studio%2Frerousel-react-carousel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aexol-studio%2Frerousel-react-carousel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aexol-studio%2Frerousel-react-carousel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aexol-studio","download_url":"https://codeload.github.com/aexol-studio/rerousel-react-carousel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406111,"owners_count":20933806,"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":["carousel","react"],"created_at":"2024-11-28T08:07:45.195Z","updated_at":"2025-04-05T22:10:07.343Z","avatar_url":"https://github.com/aexol-studio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://rerousel.netlify.app/\"\u003e\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/aexol-studio/rerousel-react-carousel/blob/ffa8b18fb54751bc09377eedbb72d29f29c8e6ee/src/__sandbox__/assets/images/RerouselLogoDark.svg\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://github.com/aexol-studio/rerousel-react-carousel/blob/ffa8b18fb54751bc09377eedbb72d29f29c8e6ee/src/__sandbox__/assets/images/RerouselLogoLight.svg\"\u003e\n  \u003cimg alt=\"Rerousel\"\u003e    \n\u003c/picture\u003e\n\u003c/a\u003e\n\n[![npm](https://img.shields.io/npm/v/rerousel.svg?style=flat-square)](https://www.npmjs.com/package/rerousel) [ ![npm downloads](https://img.shields.io/npm/dt/rerousel.svg?style=flat-square)](https://www.npmjs.com/package/rerousel)\n\n### Rerousel - the simplest and lightest infinite carousel package made for React.\n - Simple: Need a carousel component for your website or app? Tired of looking for something decent on Codepen? With Rerousel you can set it up in the blink of an eye!\n - Lightweight: Rerousel is the lightest infinite React carousel available for download from NPM because it uses only a couple of vital packages. You don’t have to worry about thousands of dependencies flooding your application!\n - Versatile: Whether you want to show off your products, brag with customer reviews, or even set up a collage of holiday pictures - Rerousel is there for you.\nIt supports all types of JSX elements, so you don't have to worry about compatibility. It doesn't have to be an infinite carousel - you can simply set up a custom stop point using the `stop` prop.\n\n## Table of contents\n\n-   [Live demo](#live-demo)\n-   [How to use?](#how-to-use)\n-   [Props](#props)\n-   [Contribute](#contribute)\n-   [Issues](#issues)\n\n## Live demo\n\nYou can play around with Rerousel sandbox by checking out [the live demo here](https://rerousel.netlify.app/)\n\n## How to use?\n\n1. Install the package using this npm command:\n\n```\nnpm install rerousel\n```\n\n2. Import Rerousel at the top of the component you want to use it in:\n\n```tsx\nimport { Rerousel } from 'rerousel';\n```\n\n3. Place it in the desired position in the html tree and fill it with the items you want to showcase\n\n```tsx\nexport const Component: React.FC\u003cCustomersProps\u003e = ({ customers }) =\u003e {\n    const customerLogo = useRef(null);\n\n    return (\n        \u003cContainer\u003e\n            \u003cRerousel itemRef={customerLogo}\u003e\n                {customers.map((c) =\u003e {\n                    return \u003cImg key={c.image} image={c.image} ref={customerLogo} /\u003e;\n                })}\n            \u003c/Rerousel\u003e\n        \u003c/Container\u003e\n    );\n};\n```\n\n4. Create a ref pointing to your outermost item inside of the Rerousel and include it in Rerousel as an `itemRef` prop.\n   You can also determine the interval using the `interval` prop in **milliseconds**, but you don't have to - the default value is **3 seconds**.\n\n## Props\n\n| Prop         | Type                     | Default     | Required? | Description                                                                                   |\n| ------------ | ------------------------ | ----------- | --------- | --------------------------------------------------------------------------------------------- |\n| **itemRef**  | _RefObject\u003cHTMLElement\u003e_ | `undefined` | Yes       | Reference to the outermost item of the carousel - used to retrieve information about the item's total width |\n| **interval** | _Number_                 | `3000`      | No        | Interval length in milliseconds                                                               |\n| **stop**     | _Boolean_                | `false`     | No        | Should the carousel stop?                                                                     |\n\n## Contribute\n\n1.  Fork this repo\n2.  Create your feature branch: git checkout -b feature-name\n3.  Commit your changes: git commit -am 'Add some feature'\n4.  Push to the branch: git push origin my-new-feature\n5.  Submit a pull request\n\n## Issues\n\nIf you encounter any issues when using the **Rerousel** package, please add a new issue - we will get to it as fast as it's possible.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faexol-studio%2Frerousel-react-carousel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faexol-studio%2Frerousel-react-carousel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faexol-studio%2Frerousel-react-carousel/lists"}