Plan Chest Sheet Stack
An index of works on paper laid out as ruled plan-chest drawer rows, each row showing a peek of the sheets stacked behind it. Opening a row drops into a stack viewer: the top sheet visually lifts, slides and rotates clear of the pile, then drops to the back while the next sheet rises into place.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/plan-chest-sheet-stack.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/gallery/gallery1.tsx instead.
Usage
The file also exports gallery1Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Gallery1, gallery1Demo } from "@/components/blocks/gallery/gallery1"; export default function Page() { return <Gallery1 {...gallery1Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Plan Chest" | Section heading above the drawer index. |
| description | string | "Works on paper, held flat in the chest. Open a drawer to browse the stack." | Short supporting copy under the heading. |
| sheets | PlanChestSheet[] | none | The sheets held in the chest, rendered as ruled index rows in the order passed in. |
| className | string | none | Extra classes for the outer section element. |
Types
type PlanChestSheet = { refNumber: string; title: string; medium: string; year: string; image: { src: string; alt: string }; };
Behavior notes
- Clicking a drawer row opens a real stack viewer: real client state (useState) holds the current front-to-back sheet order, rotated left one position at a time.
- "Next sheet" is a genuine array rotation, not a fake carousel: clicking it lifts the front sheet with a CSS transition (transform + opacity over 500ms), then, once that transition has had time to play, shifts it from the front of the order array to the back and re-renders the stack so the next sheet rises to the top.
- The peek of sheets stacked behind each drawer row is decorative (static offset panels), the real animated stack only exists inside the open viewer.
- The viewer closes on Escape or its close button; there is no backend involved anywhere in this block.
More Gallery Blocks
View all →Wall Scale Viewer
Print grid with a wall-mockup viewer that scales the piece as you switch between size options.
Archive Record Cards
Text-first archive index that opens into a real 3D flip card of front image and back registrar notes.
Loupe Surface Studies
Square material/texture studies that open into a viewer with a real draggable magnifying loupe.
Paired Hang Compare
Two-to-a-bay staggered hang whose viewer can split into two real panes to compare a second work.
Dark Room Fade Viewer
Inverted low-light hang that opens into a chromeless viewer, the work fading up like a dimmer lamp.
Counter Scrolling Image Bands
Two full-bleed image tracks scrolling in opposite directions, opening a framed lightbox on click.