Throttle Builder · Components · Basic

Gallery

A grid, masonry or carousel of images with captions and an optional lightbox.

The Gallery component in the Components library, with its description and settings
The Gallery component in the Components library, with its description and settings

What it is for

A grid, masonry or carousel of images with captions. Images can open in a lightbox.

Where you can use it

On any page, template, saved section, header or footer.

In the editor, open the Add tab of the left panel and drag it into a column. Its type is basic.gallery, version 1.

Options

Content tab

OptionKeyAllowed valuesDefault
ImagesimagesA list of up to 60 items; each item has the fields below.No items
LayoutlayoutGrid (grid), Masonry (masonry), Carousel (carousel).Grid (grid)
Image shaperatioAdapt (adapt), 1:1 (1:1), 4:5 (4:5).Adapt (adapt)
Open images in a lightboxlightboxOn or off.On
CaptionscaptionsBelow (below), Overlay (overlay), Hidden (hidden).Below (below)
Gallery name (for screen readers)labelText, up to 100 characters. One value per language.“Gallery”
Lightbox status ({n} of {total})statusTextText, up to 100 characters. One value per language.“Image {n} of {total}”
Lightbox close buttoncloseLabelText, up to 40 characters. One value per language.“Close”
Previous buttonprevLabelText, up to 60 characters. One value per language.“Previous image”
Next buttonnextLabelText, up to 60 characters. One value per language.“Next image”
Load first (the first image is the main image of the page)priorityOn or off.Off

Style tab

OptionKeyAllowed valuesDefault
Columns on desktopcolumnsDesktopA number from 1 to 6.3
Columns on phonecolumnsMobileA number from 1 to 3.2
Gap (px)gapA number from 0 to 48.12

Fields of each item in Images

FieldKeyAllowed valuesDefault
ImageimageAn image from the Media library.Empty
Alt textaltText, up to 300 characters. One value per language.Empty
CaptioncaptionText, up to 300 characters. One value per language.Empty
Link (when the lightbox is off)linkA link to a page, product, collection, category, a search, or a web address.Empty

Every component also has the common options: Hide, Anchor, Space above, Space below, Entrance animation and Entrance delay.

Responsive behaviour

Every option can be set again for tablet (768 to 1024 px) and phone (767 px and below): switch the device at the top of the editor and change it there. Tablet starts from the desktop value and phone from the tablet value, so you only set what differs.

Columns on desktop (1 to 6) and Columns on phone (1 to 3) are set separately; tablets use at most 3 columns.

SEO and accessibility

It is written on the server as a list of figures with captions. With the lightbox on (the default), every image links to its full-size file, so it works without JavaScript; with it off, an image links to the link you set on it, if any. The lightbox is an enhancement (a dialog with Escape, arrow keys and an "Image 3 of 12" status).

With an AI agent

An agent adds it with add_widget and changes its options with update_node, using the keys above. See the MCP tool reference.

The widget an agent adds
{
  "type": "basic.gallery",
  "v": 1,
  "props": {}
}
Generated from the code
The option tables on this page are generated from the component definitions in @usethrottle/builder-schema 0.4.2 and @usethrottle/storefront-react 0.4.5.