The square photos component displays a responsive grid of square images with optional text overlays and customizable background sizing.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SallaApp/theme-raed/llms.txt
Use this file to discover all available pages before exploring further.
Component usage
Add square photo grid to your home page:Variables
Section heading displayed above the photo grid
Array of image objects
Destination URL when the image is clicked
Type of link:
category- Link to a category pageproduct- Link to a product pageoffers- Link to offers pagepage- Link to a custom pageexternal_link- Link to external URL (opens in new tab)brand- Link to a brand page
URL of the image
Alternative text for the image (for accessibility)
Optional text overlay displayed on the image with border styling
Sorting number for component placement (starts from zero)
Example with 3 items
Grid layout
The component automatically adjusts the grid layout:- 3 or fewer items: Single row with columns matching item count
- More than 3 items: Multiple rows with 3 columns on desktop
- Mobile: Automatically adjusts to fewer columns
Background image sizing
The component uses thesquar_photo_bg_image_size theme setting:
contain- Shows full image centered without cropping (default)cover- Fills entire area while maintaining aspect ratio
twilight.json:
Lazy loading
Images use lazy loading with thelazy__bg class:
- Images load only when they enter the viewport
- Improves initial page load performance
- Reduces bandwidth usage
For best results, use square images with consistent dimensions. The component applies the square aspect ratio automatically.
Configuration in twilight.json
This component is registered intwilight.json under features: