Skip to content
caliper ui pro docs

Cylinder carousel

Items arranged around a rotating cylinder.

Pro

Start the Northwind site

Dashboard opens in the editor

Launch page

Marketing

Docs home

Docs

Pricing

Marketing

Changelog

Docs

Dashboard

App

Settings

App

Sign in

Account

Empty state

App

Dashboard selected, 5 of 8

When to use

  • A showpiece for a small set of visuals.
  • Playful landing pages.

When not to use

  • The items carry detailed text.
  • Accessibility of every item must be quick to reach; prefer a list.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/cylinder-carousel

Adds its 2 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

CylinderCarousel

8 props
PropTypeDefaultDescription
label *string—
items *readonly CylinderItem[]—
valuestring—
defaultValuestring—
onValueChange((id: string) => void)—
itemWidthnumber150Card size in pixels; the ring's radius follows from it and the card count.
itemHeightnumber200
classNamestring—

Keyboard

→
Moves to the next item or value.
↓
Moves to the next item or value.
←
Moves to the previous 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 listbox, option and status semantics, with aria-label, aria-orientation and aria-selected kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/cylinder-carousel.md

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

More in Compare & browse