Skip to content
caliper ui docs

Pro

Stagger

Children of a group arrive one after another on mount or when scrolled into view, so a new list reads in order.

Pro
pnpm dlx shadcn@latest add @caliper/stagger

Invoices

5 results for Ostra Freight · newest first

INV-204118 Oct€4,800
INV-204011 Oct€1,250
CN-118 · credit note9 Oct−€300
INV-20392 Oct€9,900
INV-203826 Sep€620
Installs components/ui/stagger.tsxDepends on none beyond ReactMotion shared motion tokens

When to use

Use it for

  • Search results, cards or rows that appear together.
  • A section's items on first view.

Skip it when

  • Content people come back to every day; arrive once, then stay still.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/stagger

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 { Stagger } from "@/components/ui/stagger"

The worked example comes with Pro

The 45-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

Stagger

component

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

PropTypeDefaultDescription
trigger"view" | "mount""mount"Start on mount, or the first time the group is in view.
stepnumber45Milliseconds between one child and the next.
replayKeystring | number—Change it to play the entrance again, e.g. after a new search.

Accessibility

It is built on native elements, so roles and focus come from the browser.

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

Motion

Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.

All Surfaces examples