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.
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
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.
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.mdThe index of every part is at /llms.txt.











