Skip to content
caliper ui docs

Pro

Carousel

A swipeable row of slides with controls and dots.

Pro
pnpm dlx shadcn@latest add @caliper/carousel

Autumn campaign studies

Three studies and three notes for the 12 November launch, six photos

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.

Installs components/ui/carousel.tsxDepends on @radix-ui/react-slot, lucide-reactMotion honours reduced motion

When to use

Use it for

  • Showing a handful of related items one or few at a time.
  • Touch-first browsing.

Skip it when

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

Usage

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { Carousel } from "@/components/ui/carousel"

The worked example comes with Pro

The 64-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

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.

KeyBehaviour
→Moves to the next item or value.
←Moves to the previous item or value.
HomeJumps to the first item or the minimum.
EndJumps to the last item or the maximum.

Motion

It checks prefers-reduced-motion itself and settles immediately instead of travelling. Every state is still reachable.

All Compare & browse examples