Skip to content

carouselcn

Copy-paste carousel components for React with swipe, loop, autoplay and vertical modes.

carouselcn.marcellonovelli.com

carouselcn website screenshot
Added
GitHub stars
9
License
MIT
Price
Free

About

About carouselcn

carouselcn is a set of carousel components for React that you copy into your project, in the spirit of shadcn/ui. Transitions are plain CSS, so no animation library is needed. The docs demo a basic carousel with navigation and indicators, custom indicators with controlled state, looping, vertical orientation, multiple items with custom spacing, and autoplay with play and pause controls. Touch and mouse drag are supported.

Add the carousel with the shadcn CLI, using the carousel.json registry URL, or copy registry/components/ui/carousel.tsx by hand. Then compose Carousel, CarouselContent, CarouselItem, CarouselNavigation and CarouselIndicator. It supports controlled and uncontrolled modes and dark mode, and is MIT licensed. It suits galleries, onboarding slides and testimonial rows.

carouselcn features

6 features

  • CSS-based transitions with no animation library
  • Drag and swipe on touch and mouse
  • Loop navigation
  • Controlled and uncontrolled modes
  • Custom indicators and navigation
  • Vertical and autoplay examples

Install carouselcn

1 command

Terminal

$ npx shadcn@latest add https://carouselcn.dev/r/carousel.json

What you can build with carouselcn

3 use cases

  • Building a testimonial slider for a landing page
  • Adding a swipeable image gallery to a product page
  • Creating a vertical onboarding carousel with indicators

Pricing

Ship it with Pro

The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What carouselcn is, how to install it, its license and its alternatives.

4.9 out of 5 from 150+ developers

Found your stack? Ship it.

6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.

Get Pro