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

Contact

contact-14

Three left-aligned columns for email, phone and office, each with a large icon, short text and a link.

Open full screen

Installation

php artisan ui:add-block contact-14

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

Usage

Three left-aligned columns for email, phone and office. Every piece of content is a prop. Set any of email, phone or address to null to hide that column. The address links to a Google Maps search for it unless you pass `address-href`.

<x-ui.blocks.contact-14
    email-description="Questions about an order or your account."
    email="hello@acme.test"
    phone-description="Mon to Fri, 9am to 5pm AEST."
    phone="+61 2 5550 0000"
    address-description="Come and see the workshop."
    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([
    'emailTitle' => 'Email',
    'emailDescription' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in ero.',
    'email' => 'email@example.com',
    'phoneTitle' => 'Phone',
    'phoneDescription' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in ero.',
    'phone' => '+1 (555) 000-0000',
    'addressTitle' => 'Office',
    'addressDescription' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in ero.',
    'address' => '123 Sample St, Sydney NSW 2000 AU',
    'addressHref' => null,
])