Stack Unfold Panel
A vertically stacked card deck that unfolds progressively with spring physics, shifting adjacent panels with zero layout jank.
Lightweight V8 isolates execute with zero cold-starts and under 5ms execution overhead globally.
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/stack-unfold-panel
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| cards | StackCard[] | — | Array of card items (id, title, subtitle, content, badge) |
| expandedIds | string[] | undefined | Controlled array of opened card IDs |
| onExpandedChange | (ids: string[]) => void | undefined | Expansion event callback |
| allowMultiple | boolean | false | Allows simultaneous expansion of multiple cards |
| variant | 'default' | 'minimal' | 'default' | Bordered card or minimal underline layout |