Image Gallery

Image gallery with lightbox

Marketing BlockContent

Overview

A CSS grid gallery with configurable column count and fixed row height. Individual images can span multiple columns (wide) or rows (tall) for a magazine-style layout.

Usage

import { ImageGallery } from "@leanicon/web-builder-library";

Default

Three-column grid with mixed span sizes.

  • Team lunch
  • Office party
  • Hackathon
  • Team building
  • Conference talk
  • Product launch

Two columns

  • Team lunch
  • Office party
  • Hackathon
  • Team building
  • Conference talk
  • Product launch

Four columns

  • Team lunch
  • Office party
  • Hackathon
  • Team building
  • Conference talk
  • Product launch

With heading and subtitle

We have fun too

Our culture in pictures

  • Team lunch
  • Office party
  • Hackathon
  • Team building
  • Conference talk
  • Product launch

Heading only

Gallery

  • Team lunch
  • Office party
  • Team building
  • Conference talk

Wide span only

One image set to span: "wide" to span two columns.

  • Photo 1
  • Wide photo
  • Photo 3
  • Photo 4

Tall span only

One image set to span: "tall" to span two rows.

  • Tall photo
  • Photo 1
  • Photo 2
  • Photo 3
  • Photo 4

No spans (uniform grid)

All images at normal size — a simple uniform grid.

  • Photo 1
  • Photo 2
  • Photo 3
  • Photo 4
  • Photo 5
  • Photo 6

Two images

  • Photo 1
  • Photo 2

Single image

  • Photo 1

Dark mode

  • Team lunch
  • Office party
  • Hackathon
  • Team building
  • Conference talk
  • Product launch

With heading — dark mode

We have fun too

Our culture in pictures

  • Team lunch
  • Office party
  • Hackathon
  • Team building
  • Conference talk
  • Product launch

Two columns — dark mode

  • Team lunch
  • Office party
  • Hackathon
  • Team building
  • Conference talk
  • Product launch

No spans — dark mode

  • Photo 1
  • Photo 2
  • Photo 3
  • Photo 4
  • Photo 5
  • Photo 6

Props

Prop

Type

Default

Description

images

GalleryImage[]

—

Array of images to display (required)

heading

string?

—

Optional heading above the grid

subtitle

string?

—

Optional subtitle below the heading

columns

2 | 3 | 4

3

Number of grid columns

colorScheme

"light" | "dark"

—

Force light or dark mode

className

string

—

Additional CSS classes on root

GalleryImage

Field

Type

Description

src

string

Image URL (required)

alt

string

Alt text (required)

span

"normal" | "wide" | "tall"

Grid span — "wide" = 2 columns, "tall" = 2 rows

Notes

  • Each row is fixed at 250px height (auto-rows-[250px]).
  • "wide" spans 2 columns; "tall" spans 2 rows.
  • Images are rendered with object-cover to fill their grid cell.
  • Dark mode: pass colorScheme="dark" or place inside a .dark ancestor.

Props

NameTypeDefaultRequiredDescription
headingstring—No
subtitlestring—No
imagesGalleryImage[]—Yes
columnsenum3No
animationImageGalleryAnimation—No
colorSchemeenum—No
classNamestring—No