Skip to content
Corex

GalleryRenderer

Corex\Ui\Blocks\GalleryRenderer · class · Add-ons layer

Renders an image gallery as a responsive CSS grid of figures, each a real <img> (with alt text + lazy loading) and an optional caption. Images are a repeatable array attribute from the media library (spec 029); an image with no URL is skipped, and an empty gallery renders nothing.

render(array $attributes, string $content, object $block): string

Section titled “render(array $attributes, string $content, object $block): string”