{"id":13778435,"url":"https://github.com/kevva/deku-carousel","last_synced_at":"2025-06-24T08:03:44.606Z","repository":{"id":65995128,"uuid":"43548974","full_name":"kevva/deku-carousel","owner":"kevva","description":"Carousel component for deku","archived":false,"fork":false,"pushed_at":"2017-08-28T21:18:58.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-02T14:25:12.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/kevva.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2015-10-02T11:19:23.000Z","updated_at":"2024-04-05T19:05:37.000Z","dependencies_parsed_at":"2023-03-10T19:00:20.500Z","dependency_job_id":null,"html_url":"https://github.com/kevva/deku-carousel","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.045454545454545414","last_synced_commit":"94e67654166a255ea0eb86a916dfadb52ce07cff"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/kevva/deku-carousel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fdeku-carousel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fdeku-carousel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fdeku-carousel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fdeku-carousel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevva","download_url":"https://codeload.github.com/kevva/deku-carousel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fdeku-carousel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260294188,"owners_count":22987600,"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":[],"created_at":"2024-08-03T18:00:53.784Z","updated_at":"2025-06-24T08:03:44.582Z","avatar_url":"https://github.com/kevva.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":[],"readme":"# deku-carousel\n\n\u003e Carousel component for deku\n\n\n## Install\n\n```\n$ npm install deku-carousel\n```\n\n\n## Usage\n\n```js\nimport Carousel from 'deku-carousel';\n\nconst render = () =\u003e (\n\t\u003cCarousel play arrows arrowPrev='Previous' arrowNext='Next'\u003e\n\t\t\u003cdiv\u003e\u003cimg src='cat.jpg' alt=''/\u003e\u003c/div\u003e\n\t\t\u003cdiv\u003e\u003cimg src='unicorn.jpg' alt=''/\u003e\u003c/div\u003e\n\t\u003c/Carousel\u003e\n);\n\nexport default {render};\n```\n\n\n## API\n\n### \u0026lt;Carousel/\u0026gt;\n\n#### arrows\n\nType: `boolean`\u003cbr\u003e\nDefault: `false`\n\nWhether to show navigation controls.\n\n#### arrowNext\n\nType: `string` `Node`\n\nElement to show for the next control.\n\n#### arrowPrev\n\nType: `string` `Node`\n\nElement to show for the previous control.\n\n#### class\n\nType: `string`\n\nAdd classnames to the element.\n\n#### duration\n\nType: `number`\u003cbr\u003e\nDefault: `300`\n\nSet the transition duration in milliseconds.\n\n#### fastThreshold\n\nType: `number`\u003cbr\u003e\nDefault: `300`\n\nThis is the amount of time in milliseconds which determines if a swipe was fast or not.\n\n#### interval\n\nType: `number`\u003cbr\u003e\nDefault: `5000`\n\nSet the cycle interval.\n\n#### onChange\n\nType: `Function`\n\nFunction to run when the a swipe occurs. Receives the current element and the `index` as arguments.\n\n#### play\n\nType: `boolean`\u003cbr\u003e\nDefault: `false`\n\nWhether to play through the items automatically.\n\n#### threshold\n\nType: `number`\n\nSet the swipe threshold.\n\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Fdeku-carousel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevva%2Fdeku-carousel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Fdeku-carousel/lists"}