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

PropTypeDefaultDescription
cardsStackCard[]Array of card items (id, title, subtitle, content, badge)
expandedIdsstring[]undefinedControlled array of opened card IDs
onExpandedChange(ids: string[]) => voidundefinedExpansion event callback
allowMultiplebooleanfalseAllows simultaneous expansion of multiple cards
variant'default' | 'minimal''default'Bordered card or minimal underline layout