Contact
contact-10
Contact form with name, email, phone, topic select, radio group, message and terms checkbox, beside email, phone and office details.
{{--
Contact form beside the contact details. Every piece of content is a prop.
A field is ['type' => ..., 'name' => ..., 'label' => ...] where type is
text, email, tel, select, radio, textarea or checkbox. Add 'placeholder',
'required' => true, 'options' (select and radio: a list of labels, or
value => label pairs) and 'width' => 'half' (always half a row) or
'half-md' (half a row from md up). A checkbox takes an optional 'link'
=> ['label' => ..., 'href' => ...] printed after its label. Set any of
email, phone or address to null to hide that item.
<x-ui.blocks.contact-10
tagline="Support"
heading="Talk to us"
description="We answer every message within one working day."
:action="route('contact.store')"
:fields="[
['type' => 'text', 'name' => 'name', 'label' => 'Name', 'required' => true],
['type' => 'email', 'name' => 'email', 'label' => 'Email', 'required' => true],
['type' => 'textarea', 'name' => 'message', 'label' => 'Message', 'placeholder' => 'How can we help?'],
]"
submit-label="Send message"
email="hello@acme.test"
phone="+61 2 5550 0000"
address="1 Market St, Sydney NSW 2000"
/>
--}}
@props([
'id' => 'contact-10',
'tagline' => 'Tagline',
'heading' => 'Contact us',
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
'action' => '#',
'method' => 'POST',
'csrf' => true,
'fields' => [
['type' => 'text', 'name' => 'first_name', 'label' => 'First name', 'width' => 'half'],
['type' => 'text', 'name' => 'last_name', 'label' => 'Last name', 'width' => 'half'],
['type' => 'email', 'name' => 'email', 'label' => 'Email', 'width' => 'half-md'],
['type' => 'tel', 'name' => 'phone', 'label' => 'Phone number', 'width' => 'half-md'],
[
'type' => 'select',
'name' => 'topic',
'label' => 'Choose a topic',
'placeholder' => 'Select one...',
'options' => ['First topic', 'Second topic', 'Third topic'],
],
[
'type' => 'radio',
'name' => 'role',
'label' => 'Which best describes you?',
'options' => ['First choice', 'Second choice', 'Third choice', 'Fourth choice', 'Fifth choice', 'Other'],
],
['type' => 'textarea', 'name' => 'message', 'label' => 'Message', 'placeholder' => 'Type your message...'],
[
'type' => 'checkbox',
'name' => 'terms',
'label' => 'I accept the',
'link' => ['label' => 'Terms', 'href' => '#'],
'required' => true,
],
],
'submitLabel' => 'Submit',
'emailTitle' => 'Email',
'emailDescription' => 'Lorem ipsum dolor sit amet.',
'email' => 'email@example.com',
'phoneTitle' => 'Phone',
'phoneDescription' => 'Lorem ipsum dolor sit amet.',
'phone' => '+1 (555) 000-0000',
'addressTitle' => 'Office',
'address' => '123 Sample St, Sydney NSW 2000 AU',
'directionsLabel' => 'Get Directions',
'directionsHref' => null,
])
@php
$options = static fn(array $field): array => collect($field['options'] ?? [])
->mapWithKeys(fn($label, $value) => [is_int($value) ? $label : $value => $label])
->all();
$span = static fn(array $field): string => match ($field['width'] ?? null) {
'half' => 'col-span-1',
'half-md' => 'col-span-2 md:col-span-1',
default => 'col-span-2',
};
$tel = $phone ? 'tel:' . preg_replace('/[^\d+]/', '', $phone) : null;
$directions = $directionsHref ?? ($address ? 'https://www.google.com/maps/search/?api=1&query=' . urlencode($address) : null);
@endphp
<section {{ $attributes->merge(['class' => 'w-full bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}>
<div class="mx-auto flex max-w-7xl flex-col gap-8 md:gap-12">
<div class="flex w-full max-w-3xl flex-col gap-3 md:gap-4">
@if ($tagline)
<p class="font-semibold">{{ $tagline }}</p>
@endif
<div class="flex flex-col gap-5 md:gap-6">
<h2 class="text-4xl font-bold leading-[1.2] md:text-5xl">{{ $heading }}</h2>
@if ($description)
<p class="md:text-lg">{{ $description }}</p>
@endif
</div>
</div>
<div class="flex flex-col gap-12 md:flex-row md:gap-20">
<form action="{{ $action }}" method="{{ strtoupper($method) === 'GET' ? 'GET' : 'POST' }}"
class="grid flex-1 grid-cols-2 gap-6">
@if ($csrf && strtoupper($method) !== 'GET')
@csrf
@endif
@if (!in_array(strtoupper($method), ['GET', 'POST'], true))
@method($method)
@endif
@foreach ($fields as $field)
@php
$type = $field['type'] ?? 'text';
$name = $field['name'] ?? 'field_' . $loop->index;
$fieldId = $id . '-' . $name;
$required = !empty($field['required']);
@endphp
@if ($type === 'radio')
<fieldset class="col-span-2 py-4">
<legend class="pt-4">{{ $field['label'] ?? '' }}</legend>
<div class="grid grid-cols-2 gap-x-6 gap-y-3.5">
@foreach ($options($field) as $value => $label)
<x-ui.label class="gap-3 font-normal">
<x-ui.radio name="{{ $name }}" value="{{ $value }}" :required="$required" />
{{ $label }}
</x-ui.label>
@endforeach
</div>
</fieldset>
@elseif ($type === 'checkbox')
<div class="col-span-2 flex items-center gap-2 pb-4">
<x-ui.checkbox id="{{ $fieldId }}" name="{{ $name }}" value="1" :required="$required" />
<x-ui.label for="{{ $fieldId }}" class="inline font-normal">
{{ $field['label'] ?? '' }}
@isset($field['link'])
<a href="{{ $field['link']['href'] ?? '#' }}"
class="underline underline-offset-4">{{ $field['link']['label'] ?? '' }}</a>
@endisset
</x-ui.label>
</div>
@else
<div @class(['flex flex-col gap-2', $span($field)])>
<x-ui.label for="{{ $fieldId }}" class="font-normal">{{ $field['label'] ?? '' }}</x-ui.label>
@if ($type === 'select')
<x-ui.select id="{{ $fieldId }}" name="{{ $name }}" :required="$required">
@isset($field['placeholder'])
<option value="" disabled selected>{{ $field['placeholder'] }}</option>
@endisset
@foreach ($options($field) as $value => $label)
<option value="{{ $value }}">{{ $label }}</option>
@endforeach
</x-ui.select>
@elseif ($type === 'textarea')
<x-ui.textarea id="{{ $fieldId }}" name="{{ $name }}" rows="6"
placeholder="{{ $field['placeholder'] ?? '' }}" :required="$required"
class="min-h-44" />
@else
<x-ui.input id="{{ $fieldId }}" type="{{ $type }}" name="{{ $name }}"
placeholder="{{ $field['placeholder'] ?? '' }}" :required="$required" />
@endif
</div>
@endif
@endforeach
<div class="col-span-2">
<x-ui.button type="submit">{{ $submitLabel }}</x-ui.button>
</div>
</form>
<div class="flex flex-1 flex-col gap-10">
<div class="flex flex-col gap-10 md:flex-row md:gap-6">
@if ($email)
<div class="flex flex-1 flex-col gap-3 md:gap-4">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="size-8"
aria-hidden="true">
<rect width="20" height="16" x="2" y="4" rx="2" />
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
</svg>
<div class="flex flex-col gap-2">
<h3 class="text-lg font-bold leading-[1.4] md:text-xl">{{ $emailTitle }}</h3>
@if ($emailDescription)
<p>{{ $emailDescription }}</p>
@endif
<a href="mailto:{{ $email }}" class="underline underline-offset-4">{{ $email }}</a>
</div>
</div>
@endif
@if ($phone)
<div class="flex flex-1 flex-col gap-3 md:gap-4">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="size-8"
aria-hidden="true">
<path
d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" />
</svg>
<div class="flex flex-col gap-2">
<h3 class="text-lg font-bold leading-[1.4] md:text-xl">{{ $phoneTitle }}</h3>
@if ($phoneDescription)
<p>{{ $phoneDescription }}</p>
@endif
<a href="{{ $tel }}" class="underline underline-offset-4" dir="ltr">{{ $phone }}</a>
</div>
</div>
@endif
</div>
@if ($address)
<div class="flex flex-col gap-3 md:w-60 md:gap-4">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="size-8"
aria-hidden="true">
<path
d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" />
<circle cx="12" cy="10" r="3" />
</svg>
<div class="flex flex-col gap-4">
<div class="flex flex-col gap-2">
<h3 class="text-lg font-bold leading-[1.4] md:text-xl">{{ $addressTitle }}</h3>
<address class="not-italic">{{ $address }}</address>
</div>
@if ($directionsLabel && $directions)
<x-ui.button variant="link" href="{{ $directions }}"
class="h-auto self-start p-0 text-base font-normal text-foreground has-[>svg]:px-0">
{{ $directionsLabel }}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="size-5 rtl:rotate-180" aria-hidden="true">
<path d="m9 18 6-6-6-6" />
</svg>
</x-ui.button>
@endif
</div>
</div>
@endif
</div>
</div>
</div>
</section>
Installation
php artisan ui:add-block contact-10
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.contact-10
/>.
1. Install component dependencies
php artisan ui:add button checkbox input label radio select textarea
2. External packages
- composer:
gehrisandro/tailwind-merge-laravel
3.
Copy the block source into
resources/views/components/ui/
resources/views/components/ui/blocks/contact-10.blade.php
{{--
Contact form beside the contact details. Every piece of content is a prop.
A field is ['type' => ..., 'name' => ..., 'label' => ...] where type is
text, email, tel, select, radio, textarea or checkbox. Add 'placeholder',
'required' => true, 'options' (select and radio: a list of labels, or
value => label pairs) and 'width' => 'half' (always half a row) or
'half-md' (half a row from md up). A checkbox takes an optional 'link'
=> ['label' => ..., 'href' => ...] printed after its label. Set any of
email, phone or address to null to hide that item.
<x-ui.blocks.contact-10
tagline="Support"
heading="Talk to us"
description="We answer every message within one working day."
:action="route('contact.store')"
:fields="[
['type' => 'text', 'name' => 'name', 'label' => 'Name', 'required' => true],
['type' => 'email', 'name' => 'email', 'label' => 'Email', 'required' => true],
['type' => 'textarea', 'name' => 'message', 'label' => 'Message', 'placeholder' => 'How can we help?'],
]"
submit-label="Send message"
email="hello@acme.test"
phone="+61 2 5550 0000"
address="1 Market St, Sydney NSW 2000"
/>
--}}
@props([
'id' => 'contact-10',
'tagline' => 'Tagline',
'heading' => 'Contact us',
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
'action' => '#',
'method' => 'POST',
'csrf' => true,
'fields' => [
['type' => 'text', 'name' => 'first_name', 'label' => 'First name', 'width' => 'half'],
['type' => 'text', 'name' => 'last_name', 'label' => 'Last name', 'width' => 'half'],
['type' => 'email', 'name' => 'email', 'label' => 'Email', 'width' => 'half-md'],
['type' => 'tel', 'name' => 'phone', 'label' => 'Phone number', 'width' => 'half-md'],
[
'type' => 'select',
'name' => 'topic',
'label' => 'Choose a topic',
'placeholder' => 'Select one...',
'options' => ['First topic', 'Second topic', 'Third topic'],
],
[
'type' => 'radio',
'name' => 'role',
'label' => 'Which best describes you?',
'options' => ['First choice', 'Second choice', 'Third choice', 'Fourth choice', 'Fifth choice', 'Other'],
],
['type' => 'textarea', 'name' => 'message', 'label' => 'Message', 'placeholder' => 'Type your message...'],
[
'type' => 'checkbox',
'name' => 'terms',
'label' => 'I accept the',
'link' => ['label' => 'Terms', 'href' => '#'],
'required' => true,
],
],
'submitLabel' => 'Submit',
'emailTitle' => 'Email',
'emailDescription' => 'Lorem ipsum dolor sit amet.',
'email' => 'email@example.com',
'phoneTitle' => 'Phone',
'phoneDescription' => 'Lorem ipsum dolor sit amet.',
'phone' => '+1 (555) 000-0000',
'addressTitle' => 'Office',
'address' => '123 Sample St, Sydney NSW 2000 AU',
'directionsLabel' => 'Get Directions',
'directionsHref' => null,
])
@php
$options = static fn(array $field): array => collect($field['options'] ?? [])
->mapWithKeys(fn($label, $value) => [is_int($value) ? $label : $value => $label])
->all();
$span = static fn(array $field): string => match ($field['width'] ?? null) {
'half' => 'col-span-1',
'half-md' => 'col-span-2 md:col-span-1',
default => 'col-span-2',
};
$tel = $phone ? 'tel:' . preg_replace('/[^\d+]/', '', $phone) : null;
$directions = $directionsHref ?? ($address ? 'https://www.google.com/maps/search/?api=1&query=' . urlencode($address) : null);
@endphp
<section {{ $attributes->merge(['class' => 'w-full bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}>
<div class="mx-auto flex max-w-7xl flex-col gap-8 md:gap-12">
<div class="flex w-full max-w-3xl flex-col gap-3 md:gap-4">
@if ($tagline)
<p class="font-semibold">{{ $tagline }}</p>
@endif
<div class="flex flex-col gap-5 md:gap-6">
<h2 class="text-4xl font-bold leading-[1.2] md:text-5xl">{{ $heading }}</h2>
@if ($description)
<p class="md:text-lg">{{ $description }}</p>
@endif
</div>
</div>
<div class="flex flex-col gap-12 md:flex-row md:gap-20">
<form action="{{ $action }}" method="{{ strtoupper($method) === 'GET' ? 'GET' : 'POST' }}"
class="grid flex-1 grid-cols-2 gap-6">
@if ($csrf && strtoupper($method) !== 'GET')
@csrf
@endif
@if (!in_array(strtoupper($method), ['GET', 'POST'], true))
@method($method)
@endif
@foreach ($fields as $field)
@php
$type = $field['type'] ?? 'text';
$name = $field['name'] ?? 'field_' . $loop->index;
$fieldId = $id . '-' . $name;
$required = !empty($field['required']);
@endphp
@if ($type === 'radio')
<fieldset class="col-span-2 py-4">
<legend class="pt-4">{{ $field['label'] ?? '' }}</legend>
<div class="grid grid-cols-2 gap-x-6 gap-y-3.5">
@foreach ($options($field) as $value => $label)
<x-ui.label class="gap-3 font-normal">
<x-ui.radio name="{{ $name }}" value="{{ $value }}" :required="$required" />
{{ $label }}
</x-ui.label>
@endforeach
</div>
</fieldset>
@elseif ($type === 'checkbox')
<div class="col-span-2 flex items-center gap-2 pb-4">
<x-ui.checkbox id="{{ $fieldId }}" name="{{ $name }}" value="1" :required="$required" />
<x-ui.label for="{{ $fieldId }}" class="inline font-normal">
{{ $field['label'] ?? '' }}
@isset($field['link'])
<a href="{{ $field['link']['href'] ?? '#' }}"
class="underline underline-offset-4">{{ $field['link']['label'] ?? '' }}</a>
@endisset
</x-ui.label>
</div>
@else
<div @class(['flex flex-col gap-2', $span($field)])>
<x-ui.label for="{{ $fieldId }}" class="font-normal">{{ $field['label'] ?? '' }}</x-ui.label>
@if ($type === 'select')
<x-ui.select id="{{ $fieldId }}" name="{{ $name }}" :required="$required">
@isset($field['placeholder'])
<option value="" disabled selected>{{ $field['placeholder'] }}</option>
@endisset
@foreach ($options($field) as $value => $label)
<option value="{{ $value }}">{{ $label }}</option>
@endforeach
</x-ui.select>
@elseif ($type === 'textarea')
<x-ui.textarea id="{{ $fieldId }}" name="{{ $name }}" rows="6"
placeholder="{{ $field['placeholder'] ?? '' }}" :required="$required"
class="min-h-44" />
@else
<x-ui.input id="{{ $fieldId }}" type="{{ $type }}" name="{{ $name }}"
placeholder="{{ $field['placeholder'] ?? '' }}" :required="$required" />
@endif
</div>
@endif
@endforeach
<div class="col-span-2">
<x-ui.button type="submit">{{ $submitLabel }}</x-ui.button>
</div>
</form>
<div class="flex flex-1 flex-col gap-10">
<div class="flex flex-col gap-10 md:flex-row md:gap-6">
@if ($email)
<div class="flex flex-1 flex-col gap-3 md:gap-4">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="size-8"
aria-hidden="true">
<rect width="20" height="16" x="2" y="4" rx="2" />
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
</svg>
<div class="flex flex-col gap-2">
<h3 class="text-lg font-bold leading-[1.4] md:text-xl">{{ $emailTitle }}</h3>
@if ($emailDescription)
<p>{{ $emailDescription }}</p>
@endif
<a href="mailto:{{ $email }}" class="underline underline-offset-4">{{ $email }}</a>
</div>
</div>
@endif
@if ($phone)
<div class="flex flex-1 flex-col gap-3 md:gap-4">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="size-8"
aria-hidden="true">
<path
d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" />
</svg>
<div class="flex flex-col gap-2">
<h3 class="text-lg font-bold leading-[1.4] md:text-xl">{{ $phoneTitle }}</h3>
@if ($phoneDescription)
<p>{{ $phoneDescription }}</p>
@endif
<a href="{{ $tel }}" class="underline underline-offset-4" dir="ltr">{{ $phone }}</a>
</div>
</div>
@endif
</div>
@if ($address)
<div class="flex flex-col gap-3 md:w-60 md:gap-4">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="size-8"
aria-hidden="true">
<path
d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" />
<circle cx="12" cy="10" r="3" />
</svg>
<div class="flex flex-col gap-4">
<div class="flex flex-col gap-2">
<h3 class="text-lg font-bold leading-[1.4] md:text-xl">{{ $addressTitle }}</h3>
<address class="not-italic">{{ $address }}</address>
</div>
@if ($directionsLabel && $directions)
<x-ui.button variant="link" href="{{ $directions }}"
class="h-auto self-start p-0 text-base font-normal text-foreground has-[>svg]:px-0">
{{ $directionsLabel }}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="size-5 rtl:rotate-180" aria-hidden="true">
<path d="m9 18 6-6-6-6" />
</svg>
</x-ui.button>
@endif
</div>
</div>
@endif
</div>
</div>
</div>
</section>
Usage
Contact form beside the contact details. Every piece of content is a prop. A field is ['type' => ..., 'name' => ..., 'label' => ...] where type is text, email, tel, select, radio, textarea or checkbox. Add 'placeholder', 'required' => true, 'options' (select and radio: a list of labels, or value => label pairs) and 'width' => 'half' (always half a row) or 'half-md' (half a row from md up). A checkbox takes an optional 'link' => ['label' => ..., 'href' => ...] printed after its label. Set any of email, phone or address to null to hide that item.
<x-ui.blocks.contact-10
tagline="Support"
heading="Talk to us"
description="We answer every message within one working day."
:action="route('contact.store')"
:fields="[
['type' => 'text', 'name' => 'name', 'label' => 'Name', 'required' => true],
['type' => 'email', 'name' => 'email', 'label' => 'Email', 'required' => true],
['type' => 'textarea', 'name' => 'message', 'label' => 'Message', 'placeholder' => 'How can we help?'],
]"
submit-label="Send message"
email="hello@acme.test"
phone="+61 2 5550 0000"
address="1 Market St, Sydney NSW 2000"
/>
Props
Every prop with its default. Pass any of them as attributes, using : to bind a PHP value.
@props([
'id' => 'contact-10',
'tagline' => 'Tagline',
'heading' => 'Contact us',
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
'action' => '#',
'method' => 'POST',
'csrf' => true,
'fields' => [
['type' => 'text', 'name' => 'first_name', 'label' => 'First name', 'width' => 'half'],
['type' => 'text', 'name' => 'last_name', 'label' => 'Last name', 'width' => 'half'],
['type' => 'email', 'name' => 'email', 'label' => 'Email', 'width' => 'half-md'],
['type' => 'tel', 'name' => 'phone', 'label' => 'Phone number', 'width' => 'half-md'],
[
'type' => 'select',
'name' => 'topic',
'label' => 'Choose a topic',
'placeholder' => 'Select one...',
'options' => ['First topic', 'Second topic', 'Third topic'],
],
[
'type' => 'radio',
'name' => 'role',
'label' => 'Which best describes you?',
'options' => ['First choice', 'Second choice', 'Third choice', 'Fourth choice', 'Fifth choice', 'Other'],
],
['type' => 'textarea', 'name' => 'message', 'label' => 'Message', 'placeholder' => 'Type your message...'],
[
'type' => 'checkbox',
'name' => 'terms',
'label' => 'I accept the',
'link' => ['label' => 'Terms', 'href' => '#'],
'required' => true,
],
],
'submitLabel' => 'Submit',
'emailTitle' => 'Email',
'emailDescription' => 'Lorem ipsum dolor sit amet.',
'email' => 'email@example.com',
'phoneTitle' => 'Phone',
'phoneDescription' => 'Lorem ipsum dolor sit amet.',
'phone' => '+1 (555) 000-0000',
'addressTitle' => 'Office',
'address' => '123 Sample St, Sydney NSW 2000 AU',
'directionsLabel' => 'Get Directions',
'directionsHref' => null,
])