Contact
Contact sections — a split info+form (with optional icon tiles and socials), method cards, a map pairing and a compact strip.
Preview
@props([
'eyebrow' => 'Contact',
'heading' => "Let's start a conversation",
'intro' => 'Tell us a little about what you have in mind. We read every message and reply, in person, within one business day.',
'action' => '#',
'details' => null,
])
@php
$details ??= [
['label' => 'Email', 'value' => 'hello@example.com', 'href' => 'mailto:hello@example.com'],
['label' => 'Phone', 'value' => '+1 (555) 000-0000', 'href' => 'tel:+15550000000'],
['label' => 'Studio', 'value' => '100 Market Street, Suite 200, San Francisco', 'href' => null],
['label' => 'Hours', 'value' => 'Monday – Friday, 9am – 6pm', 'href' => null],
];
@endphp
{{--
contact-06 — "Editorial" Monogram contact section.
A sibling of contact-01 (card-wrapped form) but structurally distinct: an
open, whitespace-led two-column editorial layout — left, an uppercase
wide-tracked eyebrow over a large light `font-heading` heading, a short
intro, and a definition list of contact details (email, phone, studio,
hours); right, a refined card-less contact form (name, email, subject,
message, submit) with uppercase wide-tracked labels. Mostly static Blade.
Composes <x-ui.field>, <x-ui.label>, <x-ui.input>, <x-ui.textarea>, <x-ui.button>.
Semantic tokens only, logical spacing, WCAG AA, RTL-safe.
--}}
<x-ui.section
space="none" {{ $attributes }}
data-slot="contact"
aria-label="{{ __($heading) }}"
>
<div class="mx-auto max-w-6xl px-6 py-20 sm:px-8 lg:py-28">
<div class="grid gap-16 lg:grid-cols-2 lg:gap-24">
{{-- ── Editorial column ── --}}
<div class="flex flex-col">
<p class="font-body text-2xs uppercase tracking-[0.3em] text-muted-foreground">
{{ __($eyebrow) }}
</p>
<h2 class="mt-6 max-w-md font-heading text-4xl font-normal leading-[1.1] tracking-tight sm:text-5xl">
{{ __($heading) }}
</h2>
<p class="mt-6 max-w-md font-body text-base leading-relaxed text-muted-foreground">
{{ __($intro) }}
</p>
<dl class="mt-12 grid gap-8 border-t border-border pt-12 sm:grid-cols-2">
@foreach ($details as $detail)
<div class="flex flex-col gap-2">
<dt class="font-body text-2xs uppercase tracking-[0.2em] text-muted-foreground">
{{ __($detail['label']) }}
</dt>
<dd class="font-body text-base text-foreground">
@if ($detail['href'] ?? false)
<a href="{{ $detail['href'] }}" class="underline-offset-4 transition-colors hover:text-link hover:underline">
{{ $detail['value'] }}
</a>
@else
{{ $detail['value'] }}
@endif
</dd>
</div>
@endforeach
</dl>
</div>
{{-- ── Form column ── --}}
<form method="POST" action="{{ $action }}" class="flex flex-col gap-6 lg:pt-2">
@csrf
<div class="grid gap-6 sm:grid-cols-2">
<x-ui.field>
<x-ui.label for="contact-06-name" class="text-2xs uppercase tracking-[0.2em] text-muted-foreground" required>{{ __('Name') }}</x-ui.label>
<x-ui.input id="contact-06-name" name="name" autocomplete="name" required placeholder="{{ __('Jane Doe') }}" />
</x-ui.field>
<x-ui.field>
<x-ui.label for="contact-06-email" class="text-2xs uppercase tracking-[0.2em] text-muted-foreground" required>{{ __('Email') }}</x-ui.label>
<x-ui.input id="contact-06-email" type="email" name="email" autocomplete="email" required placeholder="{{ __('you@example.com') }}" />
</x-ui.field>
</div>
<x-ui.field>
<x-ui.label for="contact-06-subject" class="text-2xs uppercase tracking-[0.2em] text-muted-foreground">{{ __('Subject') }}</x-ui.label>
<x-ui.input id="contact-06-subject" name="subject" autocomplete="off" placeholder="{{ __('How can we help?') }}" />
</x-ui.field>
<x-ui.field>
<x-ui.label for="contact-06-message" class="text-2xs uppercase tracking-[0.2em] text-muted-foreground" required>{{ __('Message') }}</x-ui.label>
<x-ui.textarea id="contact-06-message" name="message" rows="6" required placeholder="{{ __('Tell us about your project…') }}" />
</x-ui.field>
<div class="pt-2">
<x-ui.button type="submit" class="w-full sm:w-auto">{{ __('Send message') }}</x-ui.button>
</div>
</form>
</div>
</div>
</x-ui.section>
Installation
php artisan ui:add blocks/contact-editorial
Registry contract
Install confidence
php artisan ui:add blocks/contact-editorial
writes only the generated targets below. The CLI validates each file hash before writing and
prompts before replacing local changes unless --force is used.
- Version
- 1.0.5
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/contact-editorial.blade.php |
Registry dependencies
Package dependencies
composer: jml/brok:^0.2
Use with AI
A brief for your coding agent: what the block is, the install command, how to render it, its props and the rules. Copy it, or open a prompt about this block in an assistant.
# Brok UI block: Contact Editorial (`contact-editorial`)
An open, whitespace-led editorial contact section pairing an eyebrow, light display heading, intro and contact details with a refined card-less form.
Brok UI is a Laravel Blade registry. `ui:add` copies this block into the app as plain Blade the app owns; it composes installed `<brok:*>` primitives and semantic design tokens.
## Install
```bash
php artisan ui:add blocks/contact-editorial
```
## Render it
```blade
<x-blocks.contact-editorial />
```
## Props
- `eyebrow` (string, default `Contact`)
- `heading` (string, default `Let's start a conversation`)
- `intro` (string, default `Tell us a little about what you have in mind. We read every message and reply, in person, within one business day.`)
- `action` (string, default `#`)
- `details` (mixed|null, default `null`)
## Use when
- Presenting contact details and an intro in an open, whitespace-led editorial layout beside a card-less form.
- Pairing a light display heading with a refined, low-chrome form rather than a boxed card.
## Avoid when
- Use contact-split for a card-wrapped form, or contact-map for a form paired with a map panel instead.
## Rules
- Render the installed block with `<x-blocks.contact-editorial />` and pass data through its props; edit the copied file only for structural changes.
- Keep the semantic design tokens (`bg-background`, `text-muted-foreground`); never swap in raw colour utilities.
- Keep the `data-slot` attributes and the logical (start/end) spacing so the markup still mirrors under `dir="rtl"`.
## Links
- Docs: https://brokui.dev/blocks/contact-editorial
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/contact-editorial.json
Working in Claude Code, Cursor or Codex? Give the agent the whole registry through the MCP server or the Brok UI skill.
Guidance
Use when
- Presenting contact details and an intro in an open, whitespace-led editorial layout beside a card-less form.
- Pairing a light display heading with a refined, low-chrome form rather than a boxed card.
Avoid when
- Use contact-split for a card-wrapped form, or contact-map for a form paired with a map panel instead.
Anti-patterns
- Do not replace semantic props with conflicting utility classes.
- Do not remove labels, focus styles, or state attributes.
- Anatomy
Usage
Render the block as a component, passing data where useful:
<x-blocks.contact-editorial />
Built from primitives
This block composes installed <brok:*> primitives and semantic design
tokens only — it does not reimplement any primitive. Re-theme it (light, dark, admin, customer) by
editing CSS variables; flip the preview to RTL to confirm it mirrors.
Source
The exact, editable file ui:add writes
into your app. The preview above renders this same source — there are no preview-only blocks.
@props([
'eyebrow' => 'Contact',
'heading' => "Let's start a conversation",
'intro' => 'Tell us a little about what you have in mind. We read every message and reply, in person, within one business day.',
'action' => '#',
'details' => null,
])
@php
$details ??= [
['label' => 'Email', 'value' => 'hello@example.com', 'href' => 'mailto:hello@example.com'],
['label' => 'Phone', 'value' => '+1 (555) 000-0000', 'href' => 'tel:+15550000000'],
['label' => 'Studio', 'value' => '100 Market Street, Suite 200, San Francisco', 'href' => null],
['label' => 'Hours', 'value' => 'Monday – Friday, 9am – 6pm', 'href' => null],
];
@endphp
{{--
contact-06 — "Editorial" Monogram contact section.
A sibling of contact-01 (card-wrapped form) but structurally distinct: an
open, whitespace-led two-column editorial layout — left, an uppercase
wide-tracked eyebrow over a large light `font-heading` heading, a short
intro, and a definition list of contact details (email, phone, studio,
hours); right, a refined card-less contact form (name, email, subject,
message, submit) with uppercase wide-tracked labels. Mostly static Blade.
Composes <x-ui.field>, <x-ui.label>, <x-ui.input>, <x-ui.textarea>, <x-ui.button>.
Semantic tokens only, logical spacing, WCAG AA, RTL-safe.
--}}
<x-ui.section
space="none" {{ $attributes }}
data-slot="contact"
aria-label="{{ __($heading) }}"
>
<div class="mx-auto max-w-6xl px-6 py-20 sm:px-8 lg:py-28">
<div class="grid gap-16 lg:grid-cols-2 lg:gap-24">
{{-- ── Editorial column ── --}}
<div class="flex flex-col">
<p class="font-body text-2xs uppercase tracking-[0.3em] text-muted-foreground">
{{ __($eyebrow) }}
</p>
<h2 class="mt-6 max-w-md font-heading text-4xl font-normal leading-[1.1] tracking-tight sm:text-5xl">
{{ __($heading) }}
</h2>
<p class="mt-6 max-w-md font-body text-base leading-relaxed text-muted-foreground">
{{ __($intro) }}
</p>
<dl class="mt-12 grid gap-8 border-t border-border pt-12 sm:grid-cols-2">
@foreach ($details as $detail)
<div class="flex flex-col gap-2">
<dt class="font-body text-2xs uppercase tracking-[0.2em] text-muted-foreground">
{{ __($detail['label']) }}
</dt>
<dd class="font-body text-base text-foreground">
@if ($detail['href'] ?? false)
<a href="{{ $detail['href'] }}" class="underline-offset-4 transition-colors hover:text-link hover:underline">
{{ $detail['value'] }}
</a>
@else
{{ $detail['value'] }}
@endif
</dd>
</div>
@endforeach
</dl>
</div>
{{-- ── Form column ── --}}
<form method="POST" action="{{ $action }}" class="flex flex-col gap-6 lg:pt-2">
@csrf
<div class="grid gap-6 sm:grid-cols-2">
<x-ui.field>
<x-ui.label for="contact-06-name" class="text-2xs uppercase tracking-[0.2em] text-muted-foreground" required>{{ __('Name') }}</x-ui.label>
<x-ui.input id="contact-06-name" name="name" autocomplete="name" required placeholder="{{ __('Jane Doe') }}" />
</x-ui.field>
<x-ui.field>
<x-ui.label for="contact-06-email" class="text-2xs uppercase tracking-[0.2em] text-muted-foreground" required>{{ __('Email') }}</x-ui.label>
<x-ui.input id="contact-06-email" type="email" name="email" autocomplete="email" required placeholder="{{ __('you@example.com') }}" />
</x-ui.field>
</div>
<x-ui.field>
<x-ui.label for="contact-06-subject" class="text-2xs uppercase tracking-[0.2em] text-muted-foreground">{{ __('Subject') }}</x-ui.label>
<x-ui.input id="contact-06-subject" name="subject" autocomplete="off" placeholder="{{ __('How can we help?') }}" />
</x-ui.field>
<x-ui.field>
<x-ui.label for="contact-06-message" class="text-2xs uppercase tracking-[0.2em] text-muted-foreground" required>{{ __('Message') }}</x-ui.label>
<x-ui.textarea id="contact-06-message" name="message" rows="6" required placeholder="{{ __('Tell us about your project…') }}" />
</x-ui.field>
<div class="pt-2">
<x-ui.button type="submit" class="w-full sm:w-auto">{{ __('Send message') }}</x-ui.button>
</div>
</form>
</div>
</div>
</x-ui.section>
Ownership & lifecycle
Owner, release state, review evidence and adoption for this item.
- Owner
- Platform UI (@JoshJML)
- Current version
-
1.0.5 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0