Embla Carousel
Lightweight carousel library with great touch support
Tiny bundle size with smooth scrolling and extensible plugins.
ReactCarouselTouchLightweight
๐ฎ Playground
Use cases
- โขImage galleries
- โขProduct carousels
- โขTestimonials
Good for
- โPerformance-critical apps
- โMobile-first designs
- โCustom carousels
Not good for
- โComplex multi-row grids
- โNon-scroll based animations
Installation
$npm install embla-carousel-react
Example
import useEmblaCarousel from "embla-carousel-react"
export default function Demo() {
const [emblaRef] = useEmblaCarousel()
return (
<div ref={emblaRef}>
<div className="flex">
<div>Slide 1</div>
<div>Slide 2</div>
<div>Slide 3</div>
</div>
</div>
)
}Comparison
"Lighter than Swiper, more modern than react-slick."
Trust Metrics
6.2K
GitHub Stars
820K
Weekly Downloads
Last Commit:last year
Used by
shadcn/uiCal.comVercel
