StaggeredList
Reveals list items one after another.
Animatedimport { StaggeredList } from 'umbra-ui/motion'
Props
| Prop | Type | Default | Description |
|---|---|---|---|
as | "div" | "ol" | "ul" | ul | List element. Each child is wrapped in an `<li>` (or a `<div>` when `as="div"`). |
gap | "0" | "10" | "0.5" | "1" | "1.5" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | 2 | Space between items, as a spacing token step. |
reducedMotion | "system" | "always" | "never" | "system" | Reduced-motion override. Under reduced motion all items fade in together, with no movement. |
trigger | "mount" | "inView" | inView | Start on mount, or when scrolled into view. |
Usage notes
Each direct child becomes a list item.
Accessibility
- Renders a real
<ul>/<ol>, so list semantics are kept. - Under reduced motion all items fade in together.
Import
import { StaggeredList } from 'umbra-ui/motion';
import 'umbra-ui/styles.css'; // once, at the root of your app