Panel Stack
A nested panel stack with fluid push and pop transitions — drill-down menus, settings flows, multi-step forms.
v0.2.0@magic-spells/panel-stack
$ npm i @magic-spells/panel-stackLive demo
magic-spells
Everything we ship
Three levels deep, zero unmounts.
Licensed themes
Changelog
Open source
Pick a package to look inside.
Constellation
Puzzle Pieces
Copied into your app as readable source.
dialog
command
data-table
date-picker
combobox
toast
Panel Stack
The piece rendering this menu.
$ puzzle add piece panel-stack
- Parent owns the stack array
- Escape pops one level
- Focus returns to the trigger
Push into a panel and pop back out — every level stays mounted.
About
A nested-panel stack web component with fluid push/pop transitions. Built for mobile menus, settings drill-downs, multi-step wizards, and anything that wants the feel of a navigation stack.
Usage
<panel-stack initial="root">
<stack-panel handle="root">
<button data-action-stack-push target="shop">Shop</button>
<a href="/about">About</a>
</stack-panel>
<stack-panel handle="shop">
<button data-action-stack-pop>Back</button>
<button data-action-stack-push target="shop-women">Women</button>
</stack-panel>
<stack-panel handle="shop-women">
<button data-action-stack-pop>Back</button>
<a href="/dresses">Dresses</a>
</stack-panel>
</panel-stack>About, features, usage and options are taken from the package README.