@brickslab/ui-web
Displays an array of items with staggered sequential animations. Each item slides in with customizable timing, direction, and easing. Perfect for lists, notifications, and entry effects.
Aperçu
Default (Slide Up, 150ms stagger)
Slide Down with Longer Stagger
Max Visible Items (3 of 5)
Props Table
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
items | React.ReactNode[] | — | ✓ | Array of items to display and animate. |
delay | number | 0 | — | Initial delay before animation starts (ms). |
stagger | number | 150 | — | Delay between each item animation (ms). |
duration | number | 600 | — | Duration of each item animation (ms). |
direction | "up" | "down" | "up" | — | Animation direction: "up" (slide from bottom), "down" (slide from top). |
maxVisible | number | — | — | Limit number of visible items. |
className | string | — | — | Container CSS class. |
itemClassName | string | — | — | CSS class for each item. |