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

Contact

contact-11

Email, phone and office details stacked beside a large map, with an optional map embed and a directions link.

Open full screen

Installation

php artisan ui:add-block contact-11

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-11 />.

Components it includes

Usage

Email, phone and office details stacked beside a map. Every piece of content is a prop. No map is embedded by default: the block shows a placeholder until you pass `map`, an embed URL (Google Maps, OpenStreetMap and so on), which renders as a lazy-loaded iframe titled `map-title`. Set any of email, phone or address to null to hide that item. The directions link defaults to a Google Maps search for the address.

<x-ui.blocks.contact-11
    tagline="Visit us"
    heading="Contact"
    description="Drop in, call or write. We answer within a day."
    email="hello@acme.test"
    phone="+61 2 5550 0000"
    address="1 Market St, Sydney NSW 2000"
    map="https://www.openstreetmap.org/export/embed.html?bbox=151.20,-33.87,151.21,-33.86"
    map-title="Map of our Sydney office"
/>

Props

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

@props([
    'tagline' => 'Tagline',
    'heading' => 'Contact us',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    '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,
    'map' => null,
    'mapTitle' => 'Map',
])