Footer
Site footers — a columns layout, a newsletter lead, a centered minimal, a wide mega footer and a CTA-led footer.
Preview
@props([
'brand' => 'Acme',
'heading' => 'Ready to ship faster?',
'subheading' => 'Drop polished, token-themeable interfaces into your Laravel app and launch in days, not months.',
'tagline' => 'The Laravel-native UI system you copy straight into your codebase.',
'columns' => null,
'socials' => null,
'legal' => null,
'copyright' => null,
])
@php
$columns ??= [
['heading' => 'Product', 'links' => [['label' => 'Components', 'href' => '#'], ['label' => 'Blocks', 'href' => '#'], ['label' => 'Pricing', 'href' => '#'], ['label' => 'Changelog', 'href' => '#']]],
['heading' => 'Resources', 'links' => [['label' => 'Documentation', 'href' => '#'], ['label' => 'Guides', 'href' => '#'], ['label' => 'Community', 'href' => '#']]],
['heading' => 'Company', 'links' => [['label' => 'About', 'href' => '#'], ['label' => 'Blog', 'href' => '#'], ['label' => 'Careers', 'href' => '#']]],
];
$socials ??= [
['label' => 'X', 'href' => '#', 'icon' => 'x'],
['label' => 'GitHub', 'href' => '#', 'icon' => 'github'],
['label' => 'LinkedIn', 'href' => '#', 'icon' => 'linkedin'],
];
// Map the block's `socials` contract onto social-links: `platform` (or the older
// `icon` key / a label) picks the mark; a raw `path` becomes a custom `icon`.
$socialLinks = array_map(fn (array $s) => [
'platform' => $s['platform'] ?? (isset($s['icon']) && ! str_contains($s['icon'], '<') ? $s['icon'] : strtolower(str_replace('.', '', $s['label'] ?? 'x'))),
'label' => $s['label'] ?? null,
'href' => $s['href'] ?? '#',
'icon' => isset($s['path']) ? '<path d="'.$s['path'].'"/>' : (isset($s['icon']) && str_contains($s['icon'], '<') ? $s['icon'] : null),
], $socials);
$legal ??= [
['label' => 'Privacy', 'href' => '#'],
['label' => 'Terms', 'href' => '#'],
['label' => 'Cookies', 'href' => '#'],
];
$copyright ??= '© '.date('Y').' '.$brand.'. '.__('All rights reserved.');
@endphp
<footer data-slot="footer-cta" {{ $attributes->merge(['class' => 'border-t border-border bg-card text-card-foreground']) }}>
<div class="mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8">
{{-- Oversized CTA --}}
<div class="flex flex-col items-start gap-8 lg:flex-row lg:items-center lg:justify-between">
<div class="max-w-2xl">
<h2 class="text-pretty text-3xl font-bold tracking-tight sm:text-4xl lg:text-5xl">{{ __($heading) }}</h2>
<p class="mt-4 text-pretty text-sm text-muted-foreground sm:text-base">{{ __($subheading) }}</p>
</div>
<div class="flex flex-col gap-4 sm:flex-row lg:shrink-0">
<x-ui.button size="lg" class="gap-2">
{{ __('Get started') }}
<svg class="size-4 rtl:-scale-x-100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 12h14" />
<path d="m12 5 7 7-7 7" />
</svg>
</x-ui.button>
<x-ui.button variant="ghost" size="lg">{{ __('Book a demo') }}</x-ui.button>
</div>
</div>
<x-ui.separator class="my-12" />
{{-- Brand + link columns --}}
<div class="grid grid-cols-2 gap-x-8 gap-y-12 md:grid-cols-4 lg:grid-cols-12 lg:gap-8">
{{-- Brand column --}}
<div class="col-span-2 md:col-span-4 lg:col-span-5">
<x-ui.brand href="#" :label="$brand" size="lg" />
<p class="mt-4 max-w-sm text-pretty text-sm text-muted-foreground">{{ __($tagline) }}</p>
<x-ui.social-links :links="$socialLinks" label="Social media" class="mt-6" />
</div>
{{-- Link group columns --}}
@foreach ($columns as $column)
<div class="lg:col-span-2 lg:col-start-auto">
<h2 class="text-sm font-semibold">{{ __($column['heading']) }}</h2>
<ul class="mt-4 space-y-4 text-sm">
@foreach ($column['links'] as $link)
<li>
<a href="{{ $link['href'] }}" class="text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none">{{ __($link['label']) }}</a>
</li>
@endforeach
</ul>
</div>
@endforeach
</div>
{{-- Oversized brand wordmark flourish --}}
<div class="mt-16 select-none overflow-hidden" aria-hidden="true">
<span class="block text-pretty text-[18vw] font-bold leading-none tracking-tighter text-muted-foreground lg:text-[12rem]">{{ $brand }}</span>
</div>
{{-- Bottom bar --}}
<div class="mt-8 flex flex-col items-center gap-6 border-t border-border pt-8 sm:flex-row sm:justify-between">
<p class="text-sm text-muted-foreground">{{ $copyright }}</p>
<nav aria-label="{{ __('Legal') }}">
<ul class="flex flex-wrap items-center gap-x-6 gap-y-2 text-sm">
@foreach ($legal as $link)
<li>
<a href="{{ $link['href'] }}" class="text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none">{{ __($link['label']) }}</a>
</li>
@endforeach
</ul>
</nav>
</div>
</div>
</footer>
Installation
php artisan ui:add blocks/footer-cta
Registry contract
Install confidence
php artisan ui:add blocks/footer-cta
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.1.2
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/footer-cta.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: Footer CTA (`footer-cta`)
A CTA-led footer headed by an oversized call-to-action (heading, supporting line, primary and ghost buttons), then a brand column with blurb and social links beside compact link-group columns, a copyright bottom bar, and an oversized brand wordmark flourish.
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/footer-cta
```
## Render it
```blade
<x-blocks.footer-cta />
```
## Props
- `brand` (string, default `Acme`)
- `heading` (string, default `Ready to ship faster?`)
- `subheading` (string, default `Drop polished, token-themeable interfaces into your Laravel app and launch in days, not months.`)
- `tagline` (string, default `The Laravel-native UI system you copy straight into your codebase.`)
- `columns` (mixed|null, default `null`)
- `socials` (mixed|null, default `null`)
- `legal` (mixed|null, default `null`)
- `copyright` (mixed|null, default `null`)
## Use when
- Heading a footer with an oversized call-to-action (heading, supporting line, primary and ghost buttons) before the link columns.
- Closing with an oversized brand wordmark flourish beneath the copyright bar.
## Avoid when
- Use closing-cta-* for a dedicated closing CTA section, or footer-columns if the footer itself does not need a lead CTA.
## Rules
- Render the installed block with `<x-blocks.footer-cta />` 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/footer-cta
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/footer-cta.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
- Heading a footer with an oversized call-to-action (heading, supporting line, primary and ghost buttons) before the link columns.
- Closing with an oversized brand wordmark flourish beneath the copyright bar.
Avoid when
- Use closing-cta-* for a dedicated closing CTA section, or footer-columns if the footer itself does not need a lead CTA.
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.footer-cta />
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([
'brand' => 'Acme',
'heading' => 'Ready to ship faster?',
'subheading' => 'Drop polished, token-themeable interfaces into your Laravel app and launch in days, not months.',
'tagline' => 'The Laravel-native UI system you copy straight into your codebase.',
'columns' => null,
'socials' => null,
'legal' => null,
'copyright' => null,
])
@php
$columns ??= [
['heading' => 'Product', 'links' => [['label' => 'Components', 'href' => '#'], ['label' => 'Blocks', 'href' => '#'], ['label' => 'Pricing', 'href' => '#'], ['label' => 'Changelog', 'href' => '#']]],
['heading' => 'Resources', 'links' => [['label' => 'Documentation', 'href' => '#'], ['label' => 'Guides', 'href' => '#'], ['label' => 'Community', 'href' => '#']]],
['heading' => 'Company', 'links' => [['label' => 'About', 'href' => '#'], ['label' => 'Blog', 'href' => '#'], ['label' => 'Careers', 'href' => '#']]],
];
$socials ??= [
['label' => 'X', 'href' => '#', 'icon' => 'x'],
['label' => 'GitHub', 'href' => '#', 'icon' => 'github'],
['label' => 'LinkedIn', 'href' => '#', 'icon' => 'linkedin'],
];
// Map the block's `socials` contract onto social-links: `platform` (or the older
// `icon` key / a label) picks the mark; a raw `path` becomes a custom `icon`.
$socialLinks = array_map(fn (array $s) => [
'platform' => $s['platform'] ?? (isset($s['icon']) && ! str_contains($s['icon'], '<') ? $s['icon'] : strtolower(str_replace('.', '', $s['label'] ?? 'x'))),
'label' => $s['label'] ?? null,
'href' => $s['href'] ?? '#',
'icon' => isset($s['path']) ? '<path d="'.$s['path'].'"/>' : (isset($s['icon']) && str_contains($s['icon'], '<') ? $s['icon'] : null),
], $socials);
$legal ??= [
['label' => 'Privacy', 'href' => '#'],
['label' => 'Terms', 'href' => '#'],
['label' => 'Cookies', 'href' => '#'],
];
$copyright ??= '© '.date('Y').' '.$brand.'. '.__('All rights reserved.');
@endphp
<footer data-slot="footer-cta" {{ $attributes->merge(['class' => 'border-t border-border bg-card text-card-foreground']) }}>
<div class="mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8">
{{-- Oversized CTA --}}
<div class="flex flex-col items-start gap-8 lg:flex-row lg:items-center lg:justify-between">
<div class="max-w-2xl">
<h2 class="text-pretty text-3xl font-bold tracking-tight sm:text-4xl lg:text-5xl">{{ __($heading) }}</h2>
<p class="mt-4 text-pretty text-sm text-muted-foreground sm:text-base">{{ __($subheading) }}</p>
</div>
<div class="flex flex-col gap-4 sm:flex-row lg:shrink-0">
<x-ui.button size="lg" class="gap-2">
{{ __('Get started') }}
<svg class="size-4 rtl:-scale-x-100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 12h14" />
<path d="m12 5 7 7-7 7" />
</svg>
</x-ui.button>
<x-ui.button variant="ghost" size="lg">{{ __('Book a demo') }}</x-ui.button>
</div>
</div>
<x-ui.separator class="my-12" />
{{-- Brand + link columns --}}
<div class="grid grid-cols-2 gap-x-8 gap-y-12 md:grid-cols-4 lg:grid-cols-12 lg:gap-8">
{{-- Brand column --}}
<div class="col-span-2 md:col-span-4 lg:col-span-5">
<x-ui.brand href="#" :label="$brand" size="lg" />
<p class="mt-4 max-w-sm text-pretty text-sm text-muted-foreground">{{ __($tagline) }}</p>
<x-ui.social-links :links="$socialLinks" label="Social media" class="mt-6" />
</div>
{{-- Link group columns --}}
@foreach ($columns as $column)
<div class="lg:col-span-2 lg:col-start-auto">
<h2 class="text-sm font-semibold">{{ __($column['heading']) }}</h2>
<ul class="mt-4 space-y-4 text-sm">
@foreach ($column['links'] as $link)
<li>
<a href="{{ $link['href'] }}" class="text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none">{{ __($link['label']) }}</a>
</li>
@endforeach
</ul>
</div>
@endforeach
</div>
{{-- Oversized brand wordmark flourish --}}
<div class="mt-16 select-none overflow-hidden" aria-hidden="true">
<span class="block text-pretty text-[18vw] font-bold leading-none tracking-tighter text-muted-foreground lg:text-[12rem]">{{ $brand }}</span>
</div>
{{-- Bottom bar --}}
<div class="mt-8 flex flex-col items-center gap-6 border-t border-border pt-8 sm:flex-row sm:justify-between">
<p class="text-sm text-muted-foreground">{{ $copyright }}</p>
<nav aria-label="{{ __('Legal') }}">
<ul class="flex flex-wrap items-center gap-x-6 gap-y-2 text-sm">
@foreach ($legal as $link)
<li>
<a href="{{ $link['href'] }}" class="text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none">{{ __($link['label']) }}</a>
</li>
@endforeach
</ul>
</nav>
</div>
</div>
</footer>
Ownership & lifecycle
Owner, release state, review evidence and adoption for this item.
- Owner
- Platform UI (@JoshJML)
- Current version
-
1.1.2 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0