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',
'newsletterHeading' => 'Stay in the loop',
'newsletterSubheading' => 'Product updates, new blocks, and the occasional deep dive — delivered to your inbox. No spam.',
'newsletterCta' => 'Subscribe',
'newsletterAction' => '#',
'columns' => null,
'social' => null,
'copyright' => null,
])
@php
$columns ??= [
['heading' => 'Product', 'links' => [['label' => 'Components', 'href' => '#'], ['label' => 'Blocks', 'href' => '#'], ['label' => 'Templates', 'href' => '#'], ['label' => 'Pricing', 'href' => '#']]],
['heading' => 'Company', 'links' => [['label' => 'About', 'href' => '#'], ['label' => 'Blog', 'href' => '#'], ['label' => 'Careers', 'href' => '#'], ['label' => 'Contact', 'href' => '#']]],
['heading' => 'Resources', 'links' => [['label' => 'Documentation', 'href' => '#'], ['label' => 'Guides', 'href' => '#'], ['label' => 'Changelog', 'href' => '#'], ['label' => 'Support', 'href' => '#']]],
['heading' => 'Legal', 'links' => [['label' => 'Privacy', 'href' => '#'], ['label' => 'Terms', 'href' => '#'], ['label' => 'Security', 'href' => '#'], ['label' => 'Cookies', 'href' => '#']]],
];
$social ??= ['x', 'github', 'linkedin'];
// Network keys map onto social-links marks; the older `twitter` key still resolves.
$socialLinks = array_map(fn (string $network) => ['platform' => $network === 'twitter' ? 'x' : $network], $social);
$copyright ??= '© '.date('Y').' '.$brand.'. '.__('All rights reserved.');
@endphp
<footer {{ $attributes->merge(['class' => 'border-t border-border bg-background text-foreground']) }}>
<div class="mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8">
{{-- Newsletter row --}}
<div class="flex flex-col gap-8 lg:flex-row lg:items-center lg:justify-between">
<div class="max-w-md">
<h2 class="text-2xl font-bold tracking-tight sm:text-3xl">{{ __($newsletterHeading) }}</h2>
<p class="mt-4 text-pretty text-muted-foreground">{{ __($newsletterSubheading) }}</p>
</div>
<form method="POST" action="{{ $newsletterAction }}" class="w-full max-w-md lg:w-auto" aria-label="{{ __('Newsletter signup') }}">
@csrf
<x-ui.field class="flex flex-col gap-4 sm:flex-row sm:items-end">
<div class="flex-1 space-y-2">
<x-ui.label for="footer-newsletter-email" class="sr-only">{{ __('Email address') }}</x-ui.label>
<x-ui.input
id="footer-newsletter-email"
type="email"
name="email"
autocomplete="email"
required
placeholder="{{ __('you@example.com') }}"
class="sm:min-w-72"
/>
</div>
<x-ui.button type="submit" class="w-full sm:w-auto">{{ __($newsletterCta) }}</x-ui.button>
</x-ui.field>
</form>
</div>
<x-ui.separator class="my-12" />
{{-- Link columns + brand --}}
<div class="grid gap-10 lg:grid-cols-[1.5fr_3fr]">
<div class="max-w-xs">
<x-ui.brand href="#" :label="$brand" />
<p class="mt-4 text-sm text-muted-foreground">{{ __('Build polished, token-themeable interfaces you own end to end.') }}</p>
</div>
<div class="grid grid-cols-2 gap-8 sm:grid-cols-4">
@foreach ($columns as $column)
<div>
<h3 class="text-sm font-semibold">{{ __($column['heading']) }}</h3>
<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>
</div>
<x-ui.separator class="my-10" />
{{-- Bottom bar --}}
<div class="flex flex-col items-center justify-between gap-4 sm:flex-row">
<p class="text-sm text-muted-foreground">{{ $copyright }}</p>
@if (! empty($socialLinks))
<x-ui.social-links :links="$socialLinks" />
@endif
</div>
</div>
</footer>
Installation
php artisan ui:add blocks/footer-newsletter
Registry contract
Install confidence
php artisan ui:add blocks/footer-newsletter
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-newsletter.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 Newsletter (`footer-newsletter`)
A footer led by a newsletter subscribe form, followed by multi-column link groups with a brand column and a bottom bar with copyright and social icon links.
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-newsletter
```
## Render it
```blade
<x-blocks.footer-newsletter />
```
## Props
- `brand` (string, default `Acme`)
- `newsletter-heading` (string, default `Stay in the loop`)
- `newsletter-subheading` (string, default `Product updates, new blocks, and the occasional deep dive — delivered to your inbox. No spam.`)
- `newsletter-cta` (string, default `Subscribe`)
- `newsletter-action` (string, default `#`)
- `columns` (mixed|null, default `null`)
- `social` (mixed|null, default `null`)
- `copyright` (mixed|null, default `null`)
## Use when
- Leading a footer with a newsletter subscribe form above multi-column link groups and a bottom bar with social icons.
- Prioritising email capture as the first thing a visitor sees in the footer.
## Avoid when
- Use footer-columns for a footer where the newsletter form is secondary to the link columns, or banner-newsletter for a standalone newsletter section.
## Rules
- Render the installed block with `<x-blocks.footer-newsletter />` 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-newsletter
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/footer-newsletter.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
- Leading a footer with a newsletter subscribe form above multi-column link groups and a bottom bar with social icons.
- Prioritising email capture as the first thing a visitor sees in the footer.
Avoid when
- Use footer-columns for a footer where the newsletter form is secondary to the link columns, or banner-newsletter for a standalone newsletter 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.footer-newsletter />
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',
'newsletterHeading' => 'Stay in the loop',
'newsletterSubheading' => 'Product updates, new blocks, and the occasional deep dive — delivered to your inbox. No spam.',
'newsletterCta' => 'Subscribe',
'newsletterAction' => '#',
'columns' => null,
'social' => null,
'copyright' => null,
])
@php
$columns ??= [
['heading' => 'Product', 'links' => [['label' => 'Components', 'href' => '#'], ['label' => 'Blocks', 'href' => '#'], ['label' => 'Templates', 'href' => '#'], ['label' => 'Pricing', 'href' => '#']]],
['heading' => 'Company', 'links' => [['label' => 'About', 'href' => '#'], ['label' => 'Blog', 'href' => '#'], ['label' => 'Careers', 'href' => '#'], ['label' => 'Contact', 'href' => '#']]],
['heading' => 'Resources', 'links' => [['label' => 'Documentation', 'href' => '#'], ['label' => 'Guides', 'href' => '#'], ['label' => 'Changelog', 'href' => '#'], ['label' => 'Support', 'href' => '#']]],
['heading' => 'Legal', 'links' => [['label' => 'Privacy', 'href' => '#'], ['label' => 'Terms', 'href' => '#'], ['label' => 'Security', 'href' => '#'], ['label' => 'Cookies', 'href' => '#']]],
];
$social ??= ['x', 'github', 'linkedin'];
// Network keys map onto social-links marks; the older `twitter` key still resolves.
$socialLinks = array_map(fn (string $network) => ['platform' => $network === 'twitter' ? 'x' : $network], $social);
$copyright ??= '© '.date('Y').' '.$brand.'. '.__('All rights reserved.');
@endphp
<footer {{ $attributes->merge(['class' => 'border-t border-border bg-background text-foreground']) }}>
<div class="mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8">
{{-- Newsletter row --}}
<div class="flex flex-col gap-8 lg:flex-row lg:items-center lg:justify-between">
<div class="max-w-md">
<h2 class="text-2xl font-bold tracking-tight sm:text-3xl">{{ __($newsletterHeading) }}</h2>
<p class="mt-4 text-pretty text-muted-foreground">{{ __($newsletterSubheading) }}</p>
</div>
<form method="POST" action="{{ $newsletterAction }}" class="w-full max-w-md lg:w-auto" aria-label="{{ __('Newsletter signup') }}">
@csrf
<x-ui.field class="flex flex-col gap-4 sm:flex-row sm:items-end">
<div class="flex-1 space-y-2">
<x-ui.label for="footer-newsletter-email" class="sr-only">{{ __('Email address') }}</x-ui.label>
<x-ui.input
id="footer-newsletter-email"
type="email"
name="email"
autocomplete="email"
required
placeholder="{{ __('you@example.com') }}"
class="sm:min-w-72"
/>
</div>
<x-ui.button type="submit" class="w-full sm:w-auto">{{ __($newsletterCta) }}</x-ui.button>
</x-ui.field>
</form>
</div>
<x-ui.separator class="my-12" />
{{-- Link columns + brand --}}
<div class="grid gap-10 lg:grid-cols-[1.5fr_3fr]">
<div class="max-w-xs">
<x-ui.brand href="#" :label="$brand" />
<p class="mt-4 text-sm text-muted-foreground">{{ __('Build polished, token-themeable interfaces you own end to end.') }}</p>
</div>
<div class="grid grid-cols-2 gap-8 sm:grid-cols-4">
@foreach ($columns as $column)
<div>
<h3 class="text-sm font-semibold">{{ __($column['heading']) }}</h3>
<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>
</div>
<x-ui.separator class="my-10" />
{{-- Bottom bar --}}
<div class="flex flex-col items-center justify-between gap-4 sm:flex-row">
<p class="text-sm text-muted-foreground">{{ $copyright }}</p>
@if (! empty($socialLinks))
<x-ui.social-links :links="$socialLinks" />
@endif
</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