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.
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
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.
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.mdThe index of every part is at /llms.txt.