Carousel
A swipeable row of slides with controls and dots.
1 of 6

Harbour study
Cool shadows, one warm accent.

Terrace study
Repeating arches at three depths.

Ridge study
Layered hills with a low sun.

Palette notes
Six categorical colors, quieter in light mode.

Grid notes
Eight-point grid with a 4-point half step.

Type notes
Two weights. Size does the rest.
When to use
- Showing a handful of related items one or few at a time.
- Touch-first browsing.
When not to use
- The content is critical; hidden slides may be missed.
- There is room to show everything in a grid.
Installation
pnpm dlx shadcn@latest add @caliper/carousel
Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
Carousel
4 props
Keyboard
- →
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
- Home
- Jumps to the first item or the minimum.
- End
- Jumps to the last item or the maximum.
Accessibility
It exposes status and group semantics, with aria-roledescription, aria-label, aria-hidden and aria-current kept in step with state. Changes that matter are announced through a live region.
Motion
- State changes animate with the library's shared durations and curves, so its timing matches every other part.
- Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/carousel.mdThe index of every part is at /llms.txt.