Description
react-touch-carousel is a micro carousel framework for React.js that leaves the design to you. Most carousel libraries accept static DOM nodes and offer many options, which makes highly customised designs hard to build. react-touch-carousel works the other way round: you write a container component that receives the touch listeners, drag and active state and the current position cursor, and a renderCard function that decides what each card shows and how it is styled. The carousel calls renderCard for every card, including the padded cards used for looping, and passes the rendered cards to your container as children. Options include cardCount, cardPadCount, cardSize, a vertical option that listens to vertical touch moves, a loop option that is on by default, and an autoplay option that takes an interval in milliseconds. You install the stable version from npm, and the project has a documentation site with detailed examples. The source is public on GitHub under xiaody.…
Highlights
- Ultra-customisable React carousel framework
- You control the container and each card
- Looping with padded cards
- Horizontal or vertical touch movement
- Optional autoplay
Ratings & Reviews
No ratings yet
Be the first to rate react-touch-carousel.
People also visit
react-touch-carousel FAQ
What is react-touch-carousel?
A micro carousel framework for React.js that lets you decide what the carousel renders and how it is styled.
How is it different from other carousels?
Instead of accepting static DOM nodes and many options, you provide a container component and a renderCard function.
Does it support looping?
Yes. The loop option is true by default, and padded cards are used to make the loop work.
Can it scroll vertically?
Yes. Set vertical to true to listen to vertical touch moves instead of horizontal ones.
Can it autoplay?
Yes, through the autoplay option, which takes an interval in milliseconds.
What are the best react-touch-carousel alternatives?
Popular alternatives to react-touch-carousel include react-responsive-carousel, react-simply-carousel and pure-react-carousel. See all react-touch-carousel alternatives





















