Skip to content
Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Gallery

gallery-17

Split slider: heading and description on one side, three small square slides per view running off the edge, arrows and dots below.

Open full screen

Installation

php artisan ui:add-block gallery-17

A single command installs the block's Blade file and every component it depends on. Render it in your own layout as <x-ui.blocks.gallery-17 />.

Components it includes

Usage

Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...]; leave src empty to show a placeholder. Split layout: heading and description on the start side, three small square slides per view on the end side running off the page edge (one on mobile), the arrow pair and the dots below the slider.

<x-ui.blocks.gallery-17
    heading="Our work"
    description="A few recent projects."
    :images="[
        ['src' => '/images/gallery/1.jpg', 'alt' => 'Photo 1'],
        ['src' => '/images/gallery/2.jpg', 'alt' => 'Photo 2'],
        ['src' => '/images/gallery/3.jpg', 'alt' => 'Photo 3'],
    ]"
    previous-label="Previous image"
    next-label="Next image"
/>

Props

Every prop with its default. Pass any of them as attributes, using : to bind a PHP value.

@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'],
        ['src' => null, 'alt' => 'Placeholder image 4'],
        ['src' => null, 'alt' => 'Placeholder image 5'],
        ['src' => null, 'alt' => 'Placeholder image 6'],
        ['src' => null, 'alt' => 'Placeholder image 7'],
    ],
    'previousLabel' => 'Previous slide',
    'nextLabel' => 'Next slide',
    'dotLabel' => 'Go to slide',
])