react-carousel 🎠
a carousel component using render props.
Usage
Docs coming soon! For now, use the stories folder to see some code examples.
{ return <Carousel slideCount=6 slideDuration=10000 animationDuration=1500 render= getRootProps getPrevButtonProps getWindowProps getTrackProps getNextSlideProps getCurrentSlideProps getPrevSlideProps getNextButtonProps getIndicatorListProps getIndicatorProps prevIndex currentIndex nextIndex slideCount <div ...> <button ...>Prev</button> <div ...> <div ...> <div ...> <h2>prevIndex</h2> </div> <div ...> <h2>currentIndex</h2> </div> <div ...> <h2>nextIndex</h2> </div> </div> </div> <button ...>Next</button> <ul ...> Array </ul> </div> /> }