Charcoal UI

Circular Carousel

Cards stand on a ring in 3D and the whole ring turns: drag, scroll or arrow keys, with the card facing you scaled up and the rest dimming into depth. Release snaps to a card.

  • Category: Display
  • Licence: Charcoal UI Pro
  • Built with: React 19, Tailwind CSS 4, Motion
  • Dependencies: motion, clsx, tailwind-merge

Examples

Circular Carousel

API reference

PropTypeDefaultDescription
items{ src: string; title?: string; alt?: string }[]—
radiusnumber260
autoRotatebooleanfalse
speednumber30Seconds per turn when auto-rotating.
cardWidthnumber180
onChange(index: number) => void—
classNamestring—

About Circular Carousel

Circular Carousel stands cards on a ring in 3D and turns the whole ring: drag, scroll or arrow keys, with the card facing you scaled up and the rest dimming into depth.

Circular Carousel is a display component for React 19, styled with Tailwind CSS 4 and animated with Motion. It drops into Next.js, Vite, Remix or Astro through the shadcn CLI as a single file you own.

When to use Circular Carousel

  • Product showcases.
  • Portfolio galleries.
  • Team carousels.
  • App store style feature tours.

How it works

Each card's brightness and scale come from how directly it faces you. Release snaps to the nearest card, and autoRotate turns it slowly.

Interactive parts are buttons or links with accessible names, decorative layers are hidden from assistive tech, and everything is reachable by keyboard. With prefers-reduced-motion on, it holds still or settles instantly instead of animating.

Customizing Circular Carousel

Every prop is documented in the API reference above with its type and default. The ones you will reach for first are listed here.

The Customize panel next to the preview lets you change radius, autoRotate, speed live, and the Code tab updates to match, so the snippet you copy already carries your values.

  • items.
  • radius (number, default 260).
  • autoRotate (boolean, default false).
  • speed (number, default 30): Seconds per turn when auto-rotating.
  • cardWidth (number, default 180).

Goes well with Circular Carousel

These display pieces share its tokens and motion language, so they sit together on one page without clashing.

  • Tilt Card: A 3D tilt card for React that leans toward the pointer with a moving glare
  • Spotlight Card: A React spotlight card: an accent glow follows the pointer across card and border
  • Sortable List: A drag-to-reorder React list with lifted shadows and keyboard sorting
  • Card Stack: A swipeable React card stack where the next card rises to meet you
  • Image Compare: A React before and after image comparison slider you can drag anywhere

Install Circular Carousel

npx shadcn@latest add @charcoal/circular-carousel

Circular Carousel is part of Charcoal UI Pro. One seat unlocks all 300 Pro components, 107 landing-page sections and 100 full templates, for every personal and client project, with updates included. Add the @charcoal registry once with your access token, then the command above copies circular-carousel.tsx into components/ui and installs clsx, tailwind-merge.

You own the file you install: no runtime package, no lock-in, nothing to keep in sync. Change it however your product needs.

See Charcoal UI Pro pricing · Pro setup

Frequently asked questions

Can the circular carousel rotate on its own?
Yes. Turn on autoRotate and set speed; it pauses while someone drags or uses the keys.
How do I install Circular Carousel?
Circular Carousel is part of Charcoal UI Pro. Add the @charcoal registry to components.json with your access token, then run npx shadcn@latest add @charcoal/circular-carousel. It copies circular-carousel.tsx into components/ui and installs motion, clsx, tailwind-merge.
Is Circular Carousel free for commercial use?
Circular Carousel needs a Charcoal UI Pro seat, monthly or a one-time lifetime price. A seat covers unlimited personal and commercial projects, including client work, and every future Pro component.
Does Circular Carousel work with Next.js?
Yes. It is a client component for React 19 styled with Tailwind CSS 4, so it works in the Next.js App Router and Pages Router, Vite, Remix and Astro.
Can an AI coding agent install Circular Carousel?
Yes. Connect the Charcoal UI MCP server (https://charcoalui.com/mcp) to Claude Code, Cursor or any MCP client; get_component returns Circular Carousel's props and get_install_command returns the exact command.

Circular Carousel as Markdown · llms.txt