Dropdown
Stagger Dropdown
A menu button whose items fade and slide in one after another.
npx motionsnack add stagger-dropdownCustomize
<StaggerDropdown />Props
13 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { value?: string; label: string; icon?: string; shortcut?: string; separator?: boolean; destructive?: boolean; disabled?: boolean; href?: string }[] | 5 demo actions | Rows of the menu. Icons: edit, copy, share, archive, trash, user, settings, log-out, star, download, link, plus. |
| trigger | ReactNode | - | Content of the menu button; replaces label (which still names the menu). |
| open | boolean | - | Controlled open state. Leave undefined to let the component manage it. |
| defaultOpen | boolean | false | Open state on first render when uncontrolled. |
| onOpenChange | (open: boolean) => void | - | Called whenever the menu wants to open or close. |
| onSelect | (item, index: number) => void | - | Called with the chosen item and its index. |
| className | string | '' | Extra classes on the wrapper. |
| label | string | 'Actions' | Text of the menu button. |
| closeOnSelect | boolean | true | Close the menu after an item is chosen. |
| align | 'start' | 'center' | 'end' | 'start' | Which edge of the button the menu lines up with. |
| side | 'bottom' | 'top' | 'bottom' | Whether the menu opens below or above the button. |
| bounce | number | 0.25 | Bounce of the springs. |
| duration | number | 0.4 | Seconds the springs take to settle. |
About Stagger Dropdown
Stagger Dropdown is a menu button with a panel of actions, each with an icon, a label and an optional shortcut hint, separator or destructive style. The panel springs out of the button's corner while the items follow with a short stagger, each sliding a few pixels into place. A highlight with a small accent bar glides between items as you hover or press the arrow keys. Arrow keys, Home, End, Enter, Space and Escape all work, and a click outside closes the menu. Stagger, slide distance, bounce and duration are props, and with reduced motion the menu simply fades.
What's included
- Staggered fade and slide of the menu items
- Highlight that glides between items on a spring
- 12 built-in inline SVG icons picked by name
- Shortcut hints, separators, destructive and disabled items
- Arrow keys, Home, End, Escape and outside click
- Controlled and uncontrolled open state
- Opens below or above, aligned start, center or end
- Type
- Animated React dropdown component
- Library
- Components · Dropdown
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install