Skip to content
caliper ui pro docs

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

Dunes, noon

When to use

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

When not to use

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

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.

API reference

FilmStrip

4 props

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".

Keyboard

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

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.

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/film-strip.md

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

More in Compare & browse