---
title: "contact-17"
description: "Locations list beside a photo: pick an office from the list and its photo shows next to it. CSS only, no script."
category: "Contact"
---
# contact-17
Locations list beside a photo: pick an office from the list and its photo shows next to it. CSS only, no script.
## Installation
```bash
php artisan ui:add-block contact-17
```
## Dependencies
- composer: `gehrisandro/tailwind-merge-laravel`
- component: [radio](https://laralcn-ui.abdulkadersafi.com/components/radio.md) — the CLI installs it for you.
## Source
`resources/views/components/ui/blocks/contact-17.blade.php`
```blade
{{--
Locations list beside a photo. Picking an office in the list shows its
photo next to it. It works with no script: each office is a visually
hidden radio, so the list is keyboard friendly (Tab in, arrow keys to
move) and the selected photo follows `:checked` in CSS. Every piece of
content is a prop. A location is ['name' => ..., 'address' => ...] plus
an optional 'image' => ['src' => ..., 'alt' => ...]; without a src the
panel shows a placeholder. Give each instance on a page its own `id`.
--}}
@props([
'id' => 'contact-17',
'tagline' => 'Tagline',
'heading' => 'Locations',
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
'locations' => [
['name' => 'Sydney', 'address' => '123 Sample St, Sydney NSW 2000 AU'],
['name' => 'New York', 'address' => '123 Sample St, New York NY 10000 USA'],
['name' => 'London', 'address' => '123 Sample St, London W1C 1DE, United Kingdom'],
],
'actionLabel' => 'View Office',
])
merge(['class' => 'w-full bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}>
@if ($tagline)
{{ $tagline }}
@endif
{{ $heading }}
@if ($description)
{{ $description }}
@endif
{{-- The panels sit absolutely in the right column (below the list on
mobile), so each one can stay a sibling of its own radio. The
bottom padding reserves the 3:2 panel on mobile. --}}