Description
react-carousel is a React carousel component from Brainhub. It is written in React rather than wrapping a jQuery plugin, and it can be used as a controlled or an uncontrolled component, similar to a form input. You pass the slides as children, and the carousel renders with no other setup needed. Its props cover the current slide index, a change handler that fires on arrow clicks or swipes, and many other options. A separate Dots component provides navigation dots, which you can style or replace with thumbnails. Styles only need to be imported once, at the entry point of your bundle. TypeScript usage is covered in the README. For server-side rendering, the README recommends Next.js, because the carousel does not currently work on the server and must be rendered on the client. The repository includes a live code demo, a migration guide for version 1, contribution notes and a decision log.…
Highlights
- React carousel built without jQuery
- Controlled and uncontrolled modes
- Separate Dots component for navigation or thumbnails
- Carousel and Dots props documented
- Client-side rendering recommended with Next.js
Ratings & Reviews
No ratings yet
Be the first to rate @brainhubeu/react-carousel.
People also visit
@brainhubeu/react-carousel FAQ
What is react-carousel?
A carousel component for React that shows a set of slides and lets users move between them with arrows, swipes or dots.
Can I control the current slide myself?
Yes. It can be controlled through the value prop and onChange handler, or left uncontrolled, like an input.
Does it work with server-side rendering?
Not yet. The README says it must be rendered on the client, and it recommends Next.js for SSR projects.
How do I add dots or thumbnails?
Use the separate Dots component, which can be used to fully control the navigation dots or to add thumbnails.
Is there a migration guide?
Yes. The README links a migration guide for version 1 and a live code demo with many examples.
What are the best @brainhubeu/react-carousel alternatives?
Popular alternatives to @brainhubeu/react-carousel include react-responsive-carousel, @ant-design/react-slick and pure-react-carousel. See all @brainhubeu/react-carousel alternatives


















