Skip to content
caliper ui docs

Pro

Polaroid develop

An instant photo. The print slides out of the camera's slot, then the picture comes up out of a pale, soft cloud until the colours and edges are all there, over a few seconds.

Pro
pnpm dlx shadcn@latest add @caliper/polaroid-develop

Memories

Watch it come up.

Two boats at anchor in a harbour at dawn
Harbour, 6:40
Installs components/ui/polaroid-develop.tsxDepends on none beyond ReactMotion none in component source

When to use

Use it for

  • Photo reveals on landing pages and memory features.
  • A moment of anticipation before an image.

Skip it when

  • Product photos people need to judge at once.
  • Lists of many prints; each develops on its own.

Decisions

Why it is built this way, so you know what to keep when you change your copy.

Behaviour

Print first, then develop
The develop starts after the print has left the slot, so the two motions read as one event.

Usage

The image is there from the first frame
Its alt text is on the image from the start, so the content does not wait for the animation.
Arrives developed under reduced motion
Both the slide and the develop are skipped.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/polaroid-develop

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.

example.tsx
import { PolaroidDevelop } from "@/components/ui/polaroid-develop"

The worked example comes with Pro

The 32-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

PolaroidDevelop

component

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

PropTypeDefaultDescription
src *string—
alt *string—
captionstring—Handwritten under the photo.
secondsnumber5Seconds the picture takes to come up.
runnumber0Change this number to print and develop it again.
onDeveloped(() => void)—Called when the picture has fully developed.

Accessibility

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

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

Motion

It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.

All Media examples