Hover, tap, or press Enter to explode the stack. Great for architecture diagrams.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| layers | ReactNode[] | Layers from bottom to top. | |
| size | number | 170 | Edge length of each square layer in px. |
| gap | number | 6 | Z distance between layers when collapsed. |
| spread | number | 54 | Z distance between layers when exploded. |
| className | string | Extra classes added to the outer element. | |
| layerClassName | string | Extra classes added to each layer. |