---
title: "gallery-11"
description: "Contained 16:9 image slider with the next slide peeking past the edge, arrows half outside the edges and dots below."
category: "Gallery"
---
# gallery-11
Contained 16:9 image slider with the next slide peeking past the edge, arrows half outside the edges and dots below.
## Installation
```bash
php artisan ui:add-block gallery-11
```
## Dependencies
- composer: `gehrisandro/tailwind-merge-laravel`
- component: [button](https://laralcn-ui.abdulkadersafi.com/components/button.md) — the CLI installs it for you.
- component: [carousel](https://laralcn-ui.abdulkadersafi.com/components/carousel.md) — the CLI installs it for you.
## Source
`resources/views/components/ui/blocks/gallery-11.blade.php`
```blade
{{--
Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...];
leave src empty to show a placeholder.
A contained 16:9 slider, one image per view with the next one peeking
past the container edge. Arrows sit half outside the edges from md up,
dots below.
--}}
@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'],
],
'previousLabel' => 'Previous slide',
'nextLabel' => 'Next slide',
'dotLabel' => 'Go to slide',
])
{{-- The slider spans the full section width. Its track is padded (and
scroll-padded) back to the 80rem container edge, so slides line up with
the heading and the neighbours peek into the page margin. --}}
merge(['class' => 'w-full overflow-hidden bg-background py-16 text-foreground md:py-24 lg:py-28']) }}>
{{ $heading }}
{{ $description }}
@foreach ($images as $image)
@if (!empty($image['src']))
@else
@endif
@endforeach
{{-- Centred on the slides: half of the dots row (3rem gap + 28px) is taken off. --}}
```