Skip to content
caliper ui pro docs

Photo pile

Photos dropped in a loose pile that spreads into a grid. Each photo travels from the pile to its cell, straightening as it goes, and gathers back the same way. The pile shows the top three and a count.

Pro
  • Harbour landscape
  • Ridge landscape
  • Terrace landscape

When to use

  • Attachments, albums and uploads in a message or a record.
  • Showing that there is more without taking the space.

When not to use

  • Browsing many photos; use the photo grid or the image viewer.
  • Documents, where a lean looks careless.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/photo-pile

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

PhotoPile

4 props
PropTypeDefault
label *string—
photos *readonly PilePhoto[]—
defaultSpreadbooleanfalse
classNamestring—

Keyboard

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

Accessibility

It is built on native elements and keeps aria-label, aria-expanded and aria-hidden in step with state.

Notes for AI

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

/docs/components/photo-pile.md

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

More in Stacks