caliper uidocs

Cover flow

Pro

Album-style covers that flip through in 3D.

Installs components/ui/cover-flow.tsxDepends on none beyond ReactMotion honours reduced motion
pnpm dlx shadcn@latest add @caliper/cover-flow

Ridge lineNorth Slope

When to use #

Use it for

  • Browsing music or a small visual set.

Skip it when

  • The set is large.
  • Details must be read.

Installation #

terminal
pnpm dlx shadcn@latest add @caliper/cover-flow

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.

Usage #

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

example.tsx
import { CoverFlow } from "@/components/ui/cover-flow"

The worked example comes with Pro

The 10-line example behind the preview opens here with a Pro or Team licence.

Checking your licence…

API reference #

CoverFlow

component
PropTypeDefault
label *string—
covers *readonly Cover[]—
valuestring—
defaultValuestring—
onValueChange((id: string) => void)—
sizenumber168
classNamestring—

Accessibility #

It exposes listbox and option semantics, with aria-label, aria-orientation, aria-selected, aria-hidden and aria-live 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.