Closing / CTA
Closing call-to-action sections — a centred band with a switchable backdrop, a screenshot-strip media CTA and a split card.
Preview
@props([
'eyebrow' => 'Get started',
'heading' => 'Start building today',
'subheading' => 'Install the components into your own codebase, own every line, and theme everything with design tokens. No lock-in, no runtime dependency.',
'trust' => null,
'placeholder' => 'you@company.com',
'cta' => 'Get started free',
'action' => '#',
'signinLabel' => 'Already have an account?',
'signinCta' => 'Sign in',
'signinHref' => '#',
])
@php
$trust ??= ['No credit card required', 'Cancel anytime'];
@endphp
<x-ui.section space="xl" {{ $attributes }}>
<div class="mx-auto max-w-5xl px-4">
<x-ui.card class="overflow-hidden p-8 shadow-sm sm:p-12">
<div class="grid items-center gap-10 lg:grid-cols-2 lg:gap-16">
<div class="text-start">
@if ($eyebrow)
<x-ui.badge variant="secondary" class="mb-6">{{ __($eyebrow) }}</x-ui.badge>
@endif
<h2 class="max-w-md text-balance text-3xl font-bold tracking-tight sm:text-4xl">
{{ __($heading) }}
</h2>
@if ($subheading)
<p class="mt-4 max-w-md text-pretty text-lg text-muted-foreground">
{{ __($subheading) }}
</p>
@endif
@if (! empty($trust))
<x-ui.check-list layout="row" size="sm" :items="array_map(fn ($item) => __($item), $trust)" class="mt-8 font-medium text-muted-foreground" />
@endif
</div>
<div class="rounded-lg border border-border bg-muted/40 p-6 sm:p-8">
<form method="POST" action="{{ $action }}" class="flex flex-col gap-4">
@csrf
<x-ui.field>
<x-ui.label for="cta-split-01-email">{{ __('Work email') }}</x-ui.label>
<x-ui.input
id="cta-split-01-email"
type="email"
name="email"
autocomplete="email"
required
:placeholder="__($placeholder)"
class="w-full"
/>
</x-ui.field>
<x-ui.button type="submit" size="lg" class="w-full">
{{ __($cta) }}
</x-ui.button>
<p class="text-center text-sm text-muted-foreground">
{{ __($signinLabel) }}
<a href="{{ $signinHref }}" class="font-medium text-foreground underline-offset-4 hover:underline">
{{ __($signinCta) }}
</a>
</p>
</form>
</div>
</div>
</x-ui.card>
</div>
</x-ui.section>
Installation
php artisan ui:add blocks/closing-cta-split
Registry contract
Install confidence
php artisan ui:add blocks/closing-cta-split
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/closing-cta-split.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: CTA Split (`closing-cta-split`)
A split closing call-to-action on a rounded card: a left column with an eyebrow badge, headline, supporting line, and a trust row, beside a right column with a compact work-email sign-up form, a full-width primary button, and a sign-in link.
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/closing-cta-split
```
## Render it
```blade
<x-blocks.closing-cta-split />
```
## Props
- `eyebrow` (string, default `Get started`)
- `heading` (string, default `Start building today`)
- `subheading` (string, default `Install the components into your own codebase, own every line, and theme everything with design tokens. No lock-in, no runtime dependency.`)
- `trust` (mixed|null, default `null`)
- `placeholder` (string, default `[email protected]`)
- `cta` (string, default `Get started free`)
- `action` (string, default `#`)
- `signin-label` (string, default `Already have an account?`)
- `signin-cta` (string, default `Sign in`)
- `signin-href` (string, default `#`)
## Use when
- Closing a page with a split card: headline and trust row on one side, a compact work-email sign-up form on the other.
- Capturing a lead directly in the closing section rather than only linking to a separate sign-up page.
## Avoid when
- Use closing-cta-offer for a benefit-checklist-plus-price-panel layout, or closing-cta-media for a screenshot-led closing section.
## Rules
- Render the installed block with `<x-blocks.closing-cta-split />` 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/closing-cta-split
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/closing-cta-split.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
- Closing a page with a split card: headline and trust row on one side, a compact work-email sign-up form on the other.
- Capturing a lead directly in the closing section rather than only linking to a separate sign-up page.
Avoid when
- Use closing-cta-offer for a benefit-checklist-plus-price-panel layout, or closing-cta-media for a screenshot-led closing section.
Anti-patterns
- Do not replace semantic props with conflicting utility classes.
- Do not remove labels, focus styles, or state attributes.
Usage
Render the block as a component, passing data where useful:
<x-blocks.closing-cta-split />
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' => 'Get started',
'heading' => 'Start building today',
'subheading' => 'Install the components into your own codebase, own every line, and theme everything with design tokens. No lock-in, no runtime dependency.',
'trust' => null,
'placeholder' => 'you@company.com',
'cta' => 'Get started free',
'action' => '#',
'signinLabel' => 'Already have an account?',
'signinCta' => 'Sign in',
'signinHref' => '#',
])
@php
$trust ??= ['No credit card required', 'Cancel anytime'];
@endphp
<x-ui.section space="xl" {{ $attributes }}>
<div class="mx-auto max-w-5xl px-4">
<x-ui.card class="overflow-hidden p-8 shadow-sm sm:p-12">
<div class="grid items-center gap-10 lg:grid-cols-2 lg:gap-16">
<div class="text-start">
@if ($eyebrow)
<x-ui.badge variant="secondary" class="mb-6">{{ __($eyebrow) }}</x-ui.badge>
@endif
<h2 class="max-w-md text-balance text-3xl font-bold tracking-tight sm:text-4xl">
{{ __($heading) }}
</h2>
@if ($subheading)
<p class="mt-4 max-w-md text-pretty text-lg text-muted-foreground">
{{ __($subheading) }}
</p>
@endif
@if (! empty($trust))
<x-ui.check-list layout="row" size="sm" :items="array_map(fn ($item) => __($item), $trust)" class="mt-8 font-medium text-muted-foreground" />
@endif
</div>
<div class="rounded-lg border border-border bg-muted/40 p-6 sm:p-8">
<form method="POST" action="{{ $action }}" class="flex flex-col gap-4">
@csrf
<x-ui.field>
<x-ui.label for="cta-split-01-email">{{ __('Work email') }}</x-ui.label>
<x-ui.input
id="cta-split-01-email"
type="email"
name="email"
autocomplete="email"
required
:placeholder="__($placeholder)"
class="w-full"
/>
</x-ui.field>
<x-ui.button type="submit" size="lg" class="w-full">
{{ __($cta) }}
</x-ui.button>
<p class="text-center text-sm text-muted-foreground">
{{ __($signinLabel) }}
<a href="{{ $signinHref }}" class="font-medium text-foreground underline-offset-4 hover:underline">
{{ __($signinCta) }}
</a>
</p>
</form>
</div>
</div>
</x-ui.card>
</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