StealThis .dev

Museum — Object Label / Wall Plaque

A curatorial object-label gallery rendering the classic museum tombstone — artist, life dates, italicized title, date, medium, dimensions, credit line, and accession number — across three registers: standard, extended interpretive, and a warmer kids version. A pill style switcher swaps every label in place, a mat toggle frames or unframes each artwork, and copy-to-clipboard plus single-label print affordances make the plaques feel like real gallery production tools.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Object Label / Wall Plaque

A wall of four catalogued works, each paired with the kind of plaque a real institution would hang beside it. The label follows house tombstone order — artist and life dates, the work title set in italic serif, the date, medium, dimensions, credit line, and accession number — with status badges like “On view” or “Light sensitive” beneath. Artworks are rendered as matted gradient panels with inline SVG motifs, so the component is fully self-contained with no external assets.

A pill switcher at the top toggles every label between three voices: the standard tombstone, an extended version that adds an interpretive paragraph, and a kids register that trades specs for a friendly prompt. A “Show mat” checkbox frames or unframes each piece, and each card carries copy-to-clipboard and “Print label” actions. Copying emits a toast and lifts the correct plain-text label for the current style; printing isolates a single plaque using a print stylesheet, so what comes out of the printer is just the label, not the chrome.

Everything is vanilla — the demo collection lives as a small data array, labels are templated in JS, and the tab switcher is keyboard-navigable with arrow keys and visible focus rings.

Illustrative UI only — demo data; not a real museum system.