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

Contact

contact-12

Heading and intro beside a compact email, phone and office list, with a full-width map underneath.

Open full screen

Installation

php artisan ui:add-block contact-12

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

Usage

Heading and intro beside a compact contact list, with a full-width map underneath. 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, which renders as a lazy-loaded iframe titled `map-title`. Set any of email, phone or address to null to hide that row.

<x-ui.blocks.contact-12
    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. Suspendisse varius enim in eros elementum tristique.',
    'emailTitle' => 'Email',
    'email' => 'email@example.com',
    'phoneTitle' => 'Phone',
    'phone' => '+1 (555) 000-0000',
    'addressTitle' => 'Office',
    'address' => '123 Sample St, Sydney NSW 2000 AU',
    'map' => null,
    'mapTitle' => 'Map',
])