Skip to content
caliper ui pro docs

Carousel

A swipeable row of slides with controls and dots.

Pro

1 of 6

Harbour study illustration

Harbour study

Cool shadows, one warm accent.

Terrace study illustration

Terrace study

Repeating arches at three depths.

Ridge study illustration

Ridge study

Layered hills with a low sun.

Dunes under a cloudy sky

Palette notes

Six categorical colors, quieter in light mode.

A pine forest from above

Grid notes

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

A tram stop at night

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

terminal
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

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.md

The index of every part is at /llms.txt.

More in Compare & browse