Skip to content
caliper ui docs

Pro

Cover flow

Album-style covers that flip through in 3D.

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

Your library

Seven albums added since 1 October

Ridge lineNorth Slope

Installs components/ui/cover-flow.tsxDepends on none beyond ReactMotion honours reduced motion

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 24-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

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.

All Media viewers examples