Skip to content
caliper ui docs

Pro

Film strip

A strip of film to scrub through. Frames sit between rows of sprocket holes; swipe, scroll or press a frame and the strip snaps it into the middle, where it grows while its neighbours step back.

Pro
pnpm dlx shadcn@latest add @caliper/film-strip

Contact sheet

Swipe or press a frame.

Dunes, noon

Installs components/ui/film-strip.tsxDepends on none beyond ReactMotion honours reduced motion

When to use

Use it for

  • Photo and video pickers, contact sheets and storyboards.
  • Any list of pictures where one is current.

Skip it when

  • Long lists; the strip renders every frame.
  • Frames people need to compare side by side.

Decisions

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

Behaviour

Native scrolling and snapping
It is a scroll container with snap points, so touch, trackpad and wheel behave as the device expects.

Styling

The film base is the same in both themes
The strip is dark film with light sprocket holes whatever the theme, because film does not change with the page.

Usage

Focus centres a frame
Each frame is a button; focusing one brings it to the middle, so the strip works from the keyboard.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/film-strip

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 { FilmStrip } from "@/components/ui/film-strip"

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

FilmStrip

component

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

PropTypeDefaultDescription
frames *FilmFrame[]—
defaultIndexnumber0The frame in the middle at the start.
onActiveChange((index: number) => void)—Called when a different frame settles in the middle.
labelstring"Film strip"Names the strip, e.g. "Contact sheet".

Accessibility

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

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

Motion

It checks prefers-reduced-motion itself and settles immediately instead of travelling. Every state is still reachable.

All Compare & browse examples