Cover flow
ProAlbum-style covers that flip through in 3D.
pnpm dlx shadcn@latest add @caliper/cover-flowRidge 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 #
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.
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.
API reference #
CoverFlow
component
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.
Motion #
It checks prefers-reduced-motion itself and settles immediately instead of travelling. Every state is still reachable.