Stagger List
A list whose items arrive one after another the first time it scrolls into view: steps of a process, recent updates, the points of an argument. The arrival gives the eye an order to read in; the list itself is ordinary.
Preview
Rendered from the story the storybook (a11y) CI gate runs axe against — the preview can't show something that hasn't been verified.
Install
Two equivalent paths — the URL works in any shadcn-CLI setup; the alias works once you've registered @interlace in your components.json.
npx shadcn@latest add https://ds.interlace.tools/r/stagger-list.jsonnpx shadcn@latest add @interlace/stagger-listHistory
This component is at v1.0.0. The version is stamped as a banner into the file the install writes, so the copy in your tree says which one you have — compare it with the number above before deciding whether to re-run the install.
Unreleased1 entry
- Breakingmajor
The last borrowed motion components are replaced with Interlace's own, written from scratch. Content that moves now renders in full on the server and is announced once; decoration is a layer you drop inside any component, so a button stays a
Buttonand a card stays aCard: -CountUp: a number that counts to its value when it scrolls into view. The server renders the final figure, the box never shifts, andformattakes anyIntl.NumberFormatoptions. -Scroller: a looping row of items. Each item is announced and tabbed to once, a visible Pause button sits beside it, and under reduced motion it becomes a plain scrollable row. -StaggerList: a realulorolwhose items arrive one by one, once. Focus shows an item at once. -SheenText: a few words painted with a slow travelling gradient, on text-grade tokens, with a forced-colours fallback. -Sheen: a band of light that crosses its parent. Put it inside aButton; it sits under the label. -EdgeGlow: a light that runs around the edge of aCardor any positioned element. -GridField: graph-paper lines or a dot grid, with a few seeded (or chosen) cells that light up and fade, and withinteractive, the cell under the pointer.Buttonis nowrelative isolateandCardisrelative, soSheenandEdgeGlowwork inside them with no extra classes.Components- @interlace/count-up
- @interlace/scroller
- @interlace/sheen-text
- @interlace/sheen
- @interlace/edge-glow
- @interlace/grid-field
- @interlace/button
- @interlace/card
- @interlace/number-ticker
- @interlace/marquee
- @interlace/animated-list
- @interlace/animated-gradient-text
- @interlace/shimmer-button
- @interlace/border-beam
- @interlace/animated-grid-pattern
- @interlace/interactive-grid-pattern
- @interlace/grid-pattern
- @interlace/dot-pattern
- @interlace/particles
Import
Single named export.
import { StaggerList } from '@/components/ui/effects/stagger-list';API reference
Parsed from the type declarations in the source — the same file the install writes into your tree, so this table can't drift from the component you get.
StaggerListProps
Also accepts every <ul> attribute.
| Prop | Type | Description |
|---|---|---|
| as | 'ul' | 'ol' | A bulleted list, or a numbered one when the order is the point. @default 'ul' |
| step | number | Milliseconds between one item and the next. @default 90 |
| duration | number | Milliseconds each item takes to arrive. @default 420 |
| gap | keyof typeof GAP | Space between items. @default 'md' |
Accessibility
Every story for this component is rendered headlessly and checked with axe-core (wcag2aa, wcag22aa, best-practice, ACT) on every PR. That gate has no continue-on-error, so what ships has zero known violations.
What follows is what static analysis can see. Axe cannot press a key and never sees an overlay open, so the operable-without-a-mouse claim lives in Behavior instead, where the keyboard path is replayed step by step.
- Focus + keyboard behaviour
- Native element semantics — no interaction layer to get wrong.
- Focus ring (WCAG 2.2 SC 2.4.13)
- Not focusable — no focus indicator required.
- Reduced motion
- Animation is gated on prefers-reduced-motion.
- ARIA in the source
- None — semantics come from the element or the Base UI primitive rather than hand-written ARIA.
Examples
1 more state from the same story file.
R-rule compliance
Every primitive in @interlace/ui models to the portable 26-rule floor enforced by the componentApi ESLint preset. The cells below pin exactly where each rule applies in this file.
| Rule | Concept | Where |
|---|---|---|
| R4 | Extends native el | `ul` / `ol` props |
| R6 | data-slot per part | stagger-list / -item |
| R7 | cn + ...rest | `cn(…, className)` + `{...props}` |
| R8 | Enums, not booleans | `as`, `gap` |
| R25 | Client component | the reveal runs in the browser |
| R26 | A11y from native el | list semantics; focus reveals at once |
Dependencies
- Base UI primitive
- Native / no Base UI dependency
- Lucide icons
- none
- NPM dependencies
- none
- Registry dependencies
Source
The full implementation — components/ui/effects/stagger-list.tsx once installed.
'use client';
import * as React from 'react';
// @interlace/stagger-list v1.0.0 — Interlace design system.
// Docs, props and live preview: https://ds.interlace.tools/c/stagger-list
// What changed since: https://ds.interlace.tools/c/stagger-list#history
// Generated banner — keep it, the upgrade diff reads this version.
/**
* @interlace/ui — StaggerList
*
* A list whose items arrive one after another the first time it scrolls into
* view: steps of a process, recent updates, the points of an argument. The
* arrival gives the eye an order to read in; the list itself is ordinary.
*
* ## Content first
*
* Every item is in the HTML from the server, in a real `ul` or `ol`, so a
* screen reader, a crawler and a reader without scripts get the whole list.
…118 more lines…Registry JSON
The raw registry record — what the shadcn CLI fetches.