
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
reactjs-nextjs-carousel
Advanced tools
Typescript Supported Powerful, lightweight and fully customizable carousel component for React.js and Next.js apps.
I don't have any time available to keep maintaining this package. If you have any request, try to sort it within the community. I'm able to merge pull requests that look safe from time to time but no commitment on timelines here. Feel free to fork it and publish under other name if you are in a hurry or to use another component.
npm install reactjs-nextjs-carousel
.yarn add reactjs-nextjs-carousel
.import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Carousel from 'reactjs-nextjs-carousel';
class DemoCarousel extends Component {
const slides = [
"https://fastly.picsum.photos/id/11/2500/1667.jpg?hmac=xxjFJtAPgshYkysU_aqx2sZir-kIOjNR9vx0te7GycQ",
"https://fastly.picsum.photos/id/13/2500/1667.jpg?hmac=SoX9UoHhN8HyklRA4A3vcCWJMVtiBXUg0W4ljWTor7s",
"https://fastly.picsum.photos/id/12/2500/1667.jpg?hmac=Pe3284luVre9ZqNzv1jMFpLihFI6lwq7TPgMSsNXw2w",
]
render() {
return (
<Carousel slides={slides} autoSlide={true} carouselWidth={"30rem"} effect="fade" autoSlideInterval={3000}/>
);
}
});
ReactDOM.render(<DemoCarousel />, document.querySelector('.demo-carousel'));
Name | Value | Description |
---|---|---|
slides | array | Array of image url. |
carouselWidth | string | The width of the carousel, defaults to 20rem . |
thumbWidth | string | The width of the carousel, defaults to 3rem . |
autoSlide | boolean | Change the slide automatically, default to false . |
autoSlideInterval | number | Change the slide automatically based on interval , default to 2000 . |
effect | slide or fade | Animation for change slides. |
controllArrowSize | number | Width of the Arrows, defaults to 20 . |
indicatorSize | string | The size of the indicator, defaults to 0.40rem . |
showControlArrow | boolean | Show carousel Arrow, defaults to true . |
showIndicators | boolean | Show carousel Arrow, defaults to true . |
showThumbs | boolean | Show carousel Arrow, defaults to true . |
FAQs
react.js and next.js carousel with typescript
The npm package reactjs-nextjs-carousel receives a total of 16 weekly downloads. As such, reactjs-nextjs-carousel popularity was classified as not popular.
We found that reactjs-nextjs-carousel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.