Skip to content
caliper ui pro docs

Infinite masonry

A masonry grid that loads more as you scroll.

Pro

When to use

  • Image or card walls.

When not to use

  • Order matters.

Installation

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

Adds its 3 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

InfiniteMasonry

7 props
PropTypeDefault
items *readonly MasonryItem[]—
label *string—
minColumnWidthnumber220
hasMoreboolean—
loadingboolean—
onLoadMore(() => void)—
classNamestring—

Keyboard

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

Accessibility

It exposes status semantics, with aria-label, aria-busy and aria-hidden kept in step with state. Changes that matter are announced through a live region.

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-masonry.md

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

More in Utility blocks