Skip to content
caliper ui pro docs

Infinite canvas

A board of cards that goes on in every direction. Drag anywhere and let go to glide; cards draw back a little while it moves and settle when it stops. Every second column sits half a card lower, so it reads as a wall.

Pro

When to use

  • Collections, moodboards, portfolios and lookbooks people browse rather than search.
  • A playful index of everything in a product.

When not to use

  • Lists people need to scan in order or filter; use a grid.
  • Pages where people scroll on phones through it; the board takes the drag.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/infinite-canvas

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

InfiniteCanvas

6 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
items *readonly ReactNode[]—
label *string—Names the region, e.g. "Spring collection".
columnsnumber4Columns in one tile of the pattern; the pattern repeats in every direction.
tileWidthnumber220Card size in px on wide screens; phones use about three quarters.
tileHeightnumber280
gapnumber20

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes region semantics, with aria-label, aria-roledescription and aria-hidden kept in step with state.

Motion

  • State changes animate with the library's shared durations and curves, so its timing matches every other part.
  • Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.

Notes for AI

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

/docs/components/infinite-canvas.md

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

More in Compare & browse