{"id":15006471,"url":"https://github.com/emiliano-bucci/react-spring-carousel","last_synced_at":"2025-04-04T18:05:04.913Z","repository":{"id":41211147,"uuid":"435879437","full_name":"Emiliano-Bucci/react-spring-carousel","owner":"Emiliano-Bucci","description":"A new Carousel experience for the web.","archived":false,"fork":false,"pushed_at":"2024-10-25T13:02:05.000Z","size":7371,"stargazers_count":68,"open_issues_count":9,"forks_count":5,"subscribers_count":3,"default_branch":"dev","last_synced_at":"2024-10-30T05:56:01.632Z","etag":null,"topics":["carousel","js","react","react-carousel","react-slider","react-spring","react-spring-carousel","react-spring-slider","slider","touch"],"latest_commit_sha":null,"homepage":"https://react-spring-carousel.emilianobucci.com","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/Emiliano-Bucci.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-12-07T12:53:35.000Z","updated_at":"2024-10-13T00:40:19.000Z","dependencies_parsed_at":"2024-01-11T16:07:01.526Z","dependency_job_id":"3dcb4139-09b5-444f-ab5b-cb6dc48547dc","html_url":"https://github.com/Emiliano-Bucci/react-spring-carousel","commit_stats":{"total_commits":578,"total_committers":2,"mean_commits":289.0,"dds":"0.0017301038062284002","last_synced_commit":"20bdf3490b659dad24f616b9641f01d53bf11c8f"},"previous_names":[],"tags_count":153,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emiliano-Bucci%2Freact-spring-carousel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emiliano-Bucci%2Freact-spring-carousel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emiliano-Bucci%2Freact-spring-carousel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emiliano-Bucci%2Freact-spring-carousel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Emiliano-Bucci","download_url":"https://codeload.github.com/Emiliano-Bucci/react-spring-carousel/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226213,"owners_count":20904465,"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","js","react","react-carousel","react-slider","react-spring","react-spring-carousel","react-spring-slider","slider","touch"],"created_at":"2024-09-24T19:01:54.282Z","updated_at":"2025-04-04T18:05:04.886Z","avatar_url":"https://github.com/Emiliano-Bucci.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-spring-carousel\n\n\u003e A performant React carousel component powered by `react-spring` and `@use-gesture`.\n\n[![NPM](https://img.shields.io/npm/v/react-spring-carousel.svg)](https://www.npmjs.com/package/react-spring-carousel) [![NPM](https://img.shields.io/bundlephobia/minzip/react-spring-carousel)](https://img.shields.io/bundlephobia/minzip/react-spring-carousel)\n\n## Install\n\n```bash\n// npm v7.x\nnpm install --save react-spring-carousel\n```\n\n```bash\n// npm v6.x or less\nnpm install --save react-spring react-spring-carousel\n```\n\n```bash\nyarn add react-spring react-spring-carousel\n```\n\n## Usage\n\n```tsx\nimport { useSpringCarousel } from 'react-spring-carousel'\n\nconst { carouselFragment, slideToPrevItem, slideToNextItem } = useSpringCarousel({\n  items: [\n    {\n      id: 'item-1',\n      renderItem: \u003cdiv\u003eItem 1\u003c/div\u003e,\n    },\n    {\n      id: 'item-2',\n      renderItem: \u003cdiv\u003eItem 2\u003c/div\u003e,\n    },\n  ],\n})\n\nreturn (\n  \u003cdiv\u003e\n    \u003cbutton onClick={slideToPrevItem}\u003ePrev item\u003c/button\u003e\n    \u003cdiv\u003e{carouselFragment}\u003c/div\u003e\n    \u003cbutton onClick={slideToNextItem}\u003eNext item\u003c/button\u003e\n  \u003c/div\u003e\n)\n```\n\n## Official documentation\n\nFor a complete overview of the library, please visit the official documentation.\n\n[Visit here](https://react-spring-carousel.emilianobucci.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femiliano-bucci%2Freact-spring-carousel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femiliano-bucci%2Freact-spring-carousel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femiliano-bucci%2Freact-spring-carousel/lists"}