# Embla Carousel — card for AI agents

Lightweight carousel component with fluid motion and precise swipe handling for React.

Category: Animation and motion · npm package `embla-carousel-react` · latest version 8.6.0 (checked 2026-11-01)
Install: `npm install embla-carousel-react`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## Embla Carousel
- Check the installed major version first. The docs site defaults to v9.0.0-rc04, so use the v8 docs if the project is on 8.x.
- Embla ships no CSS. Write the viewport, container and slide styles yourself. The doc examples use a flexbox layout.
- In React, call `useEmblaCarousel(options, plugins)`, put the returned ref on the viewport element, and guard against an undefined API before calling methods.
- Add features with the official plugins (autoplay, auto-scroll, auto height, fade, class names, accessibility) rather than hand-rolling them.
- Start from the matching predefined CodeSandbox (loop, thumbnails, lazy load, progress and others) instead of writing from scratch.
- Type options and the API with `EmblaOptionsType` and `EmblaCarouselType`.

## What it is
- Embla Carousel is a carousel library for the web. The README calls it "lightweight, dependency-free" and "framework-agnostic". The GitHub repository was created on 2019-03-18 and is MIT licensed. The latest tagged release is v8.6.0, published 2025-04-04. `embla-carousel-react` is the React wrapper around the core `embla-carousel` package.
- The library is headless. One builder writes that Embla "provides only carousel logic, no pre-styled UI components or CSS to override." In React you call a hook, attach the returned ref to your own viewport element, and drive slides through the returned API. Features like auto-scroll, autoplay, fade and auto height come as plugins you install separately.
- It suits teams that want carousels to match an existing design system rather than restyle a vendor's components. Both builders cited here styled their carousels with Tailwind.

## Caveats
- Docs default to a v9 release candidate: The documentation site describes v9.0.0-rc04, while the latest tagged release on GitHub is v8.6.0. The docs say the RC "can be considered stable". If you are on the stable line, switch to the v8 docs.
- Not drop-in: Because nothing ships pre-built, you have to write the layout and controls yourself. The Best Buy Canada developer listed setup time among their frustrations.
- Next and previous can behave unexpectedly: The same developer found the built-in next and previous behavior inconsistent with what they wanted. They fixed it with helpers that read `emblaApi.internalEngine()`, based on a GitHub issue.
- Expect to know flexbox: The doc examples build their layout with flexbox. One developer says weak flexbox skills made the work harder than necessary.
- Few third-party plugins: One builder notes a smaller plugin ecosystem. They add that the core set of auto-scroll, autoplay and class names covered their needs.

## Numbers (AgentGid data)
- Gid Score: 73.9 (#237 of all tools, 5 of 46 in its category)
- Used in 311 public projects set up for AI coding agents (5.0%)
- Downloads last week: 29,094,989 (as of 2026-11-24), -6.5% over 4 weeks
- GitHub stars: 8,485 (as of 2026-11-24)
- Last push: 2026-11-01

## Often used with
Class Variance Authority 98.1%, clsx 98.1%, Lucide React 97.7%, Tailwind Merge 97.1%, Radix UI 91.3%, cmdk 85.9%

## Links
- AgentGid page: https://agentgid.com/tools/embla-carousel-react/
- Homepage: https://www.embla-carousel.com
- Repository: https://github.com/davidjerleke/embla-carousel
- Source: https://github.com/davidjerleke/embla-carousel#readme
- Source: https://github.com/davidjerleke/embla-carousel
- Source: https://github.com/davidjerleke/embla-carousel/releases
- Source: https://www.embla-carousel.com/docs/examples/predefined

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
