Portfolio Demo Blockset is the platform's own block library. Every block on these pages is server-rendered, FSE-native, and used in real demos on the hub. See the platform →Built by Philip Rehberger

SFP-BLOCKS/PORTFOLIO-GRID

Portfolio grid

A masonry-style image grid with per-item size (small / medium / large). Built for the Hillcrest architecture portfolio’s landing page; usable for any visual portfolio that wants a packed, varied-size grid without a JS library.

Live

Item 1
Item 1
Item 2
Item 2
Item 3
Item 3
Item 4
Item 4
Item 5
Item 5
Item 6
Item 6

Attributes

AttributeTypeDefaultDescription
itemsarray6 sample itemsEach {image_url, alt, caption, size: small|medium|large}
columnsnumber4Column count (2–6; collapses on narrow viewports)
gapstring"1rem"CSS gap between grid cells

Example markup

html
<!-- wp:sfp-blocks/portfolio-grid {"columns":4,"items":[{"image_url":"/wp-content/uploads/cover.jpg","alt":"Cedar Cove House","caption":"Cedar Cove","size":"large"}]} /-->
Paste this in any block-editor view (or in a theme template) to drop the block in.