Exhibition Wall Hang
Hangs works of different sizes along a single center line inside a matted wall panel, the way a real gallery wall mixes small and large pieces on one sightline. Each work carries its own label; clicking one opens a viewer that shows the piece in a white mount beside a museum wall label listing medium, dimensions, and year.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/exhibition-wall-hang.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/gallery/gallery13.tsx instead.
Usage
The file also exports gallery13Demo, 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 { Gallery13, gallery13Demo } from "@/components/blocks/gallery/gallery13"; export default function Page() { return <Gallery13 {...gallery13Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "On View" | Small label above the heading; omitted entirely when unset. |
| heading | string | "The East Wall" | Section heading. |
| description | string | "Works of different scale, hung on one line." | Supporting copy under the heading; omitted entirely when unset. |
| works | WallWork[] | none | The works hung on the wall, in display order; `size` controls each frame's height/width. |
| className | string | undefined | Extra classes for the outer section element. |
Types
type WallWorkSize = "sm" | "md" | "lg"; interface WallWork { title: string; medium: string; dimensions: string; year: string; size: WallWorkSize; image?: { src: string; alt: string }; }
Behavior notes
- The wall panel centers every frame vertically with `items-center` against a shared horizontal guide line (a thin `bg-border` bar spanning the panel, purely decorative and `aria-hidden`), so frames of different `size` all hang on the same sightline exactly like a real salon wall, rather than each getting equal space in a grid cell.
- Real client-side state: `openIndex` (number | null) opens the viewer for the clicked work.
- The viewer supports ArrowLeft/ArrowRight and Escape via a keydown listener registered in useEffect only while a work is open, removed on close.
- The wall-label side column is a real `<dl>` of medium/dimensions/year, not decorative text, matching how a museum actually labels a hung piece.
- The dark scrim (bg-black/90), white mount border, and white/60-90 text chrome in the viewer are the deliberate dark-viewer-surface exception to the semantic-tokens rule used across this gallery category's other full-screen viewers.
- "use client" component, so its demo props live in the sibling gallery13.demo.tsx file per this repo's client/demo-file-split rule, not in gallery13.tsx itself.
More Gallery Blocks
View all →Plan Chest Sheet Stack
Ruled plan-chest drawer index that opens into a real stack viewer with a lift-and-rotate top sheet.
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.