---
title: "gallery-03"
description: "Image gallery with a centred heading and description above three square images in a row, one column on mobile."
category: "Gallery"
---
# gallery-03
Image gallery with a centred heading and description above three square images in a row, one column on mobile.
## Installation
```bash
php artisan ui:add-block gallery-03
```
## Dependencies
- composer: `gehrisandro/tailwind-merge-laravel`
- component: [aspect-ratio](https://laralcn-ui.abdulkadersafi.com/ar/components/aspect-ratio.md) — the CLI installs it for you.
## Source
`resources/views/components/ui/blocks/gallery-03.blade.php`
```blade
{{--
Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...];
leave src empty to show a placeholder.
Square images in three columns, one column on mobile.
--}}
@props([
'heading' => 'Image Gallery',
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
'images' => [
['src' => null, 'alt' => 'Placeholder image 1'],
['src' => null, 'alt' => 'Placeholder image 2'],
['src' => null, 'alt' => 'Placeholder image 3'],
],
])
merge(['class' => 'w-full bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}>
{{ $heading }}
{{ $description }}
@foreach ($images as $image)
@if (!empty($image['src']))
@else