Per-layer content
Fill individual layers via #layer-N slots (1 = front, ascending = receding back).
Isometric 3D card-stack illustration. Layers lift apart on hover and assemble on entrance; the thickness, outline, and motion all follow the chosen recede direction.
A three-layer stack with an icon on the front layer - the empty-state illustration.
Import the parts you need from the component's folder.
import { Stack } from "@/components/ui/stack";Six recede directions. The slab thickness, outline, and the hover lift-apart adapt to each angle - never hardcoded to one pose.
Any number of layers; depth spacing and the opacity fade derive automatically.
Tune the card edge with size, or pass width + aspect for non-square slabs.
Fill individual layers via #layer-N slots (1 = front, ascending = receding back).
interactive toggles the hover lift-apart. Turn it off for a purely static mark.
The stack fades and rises in on mount. Remount to replay it.
Composed inside Empty / EmptyMedia - the real-world usage this extracts from.