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',
'brandHref' => '#',
'copyright' => null,
'links' => null,
'socials' => null,
])
@php
$copyright ??= '© '.date('Y').' Acme, Inc. All rights reserved.';
$links ??= [
['label' => 'Privacy', 'href' => '#'],
['label' => 'Terms', 'href' => '#'],
['label' => 'Contact', 'href' => '#'],
];
$socials ??= [
['platform' => 'x', 'label' => 'X', 'href' => '#'],
['platform' => 'github', 'label' => 'GitHub', 'href' => '#'],
['platform' => 'linkedin', 'label' => 'LinkedIn', 'href' => '#'],
];
// 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);
@endphp
<footer {{ $attributes->merge(['class' => 'bg-background text-foreground']) }}>
<x-ui.separator />
<div class="mx-auto flex max-w-7xl flex-col items-center gap-4 px-4 py-8 sm:flex-row sm:justify-between sm:px-6 lg:px-8">
{{-- Brand + copyright --}}
<div class="flex flex-col items-center gap-2 text-center sm:flex-row sm:gap-4 sm:text-start">
<x-ui.brand :href="$brandHref" :label="$brand" />
<p class="text-sm text-muted-foreground">{{ $copyright }}</p>
</div>
{{-- Legal links + social buttons --}}
<div class="flex flex-wrap items-center justify-center gap-4">
<ul class="flex items-center gap-4">
@foreach ($links as $link)
<li>
<a href="{{ $link['href'] }}" class="text-sm text-muted-foreground transition-colors hover:text-foreground">
{{ __($link['label']) }}
</a>
</li>
@endforeach
</ul>
<x-ui.separator orientation="vertical" class="hidden h-5 sm:block" />
<x-ui.social-links :links="$socialLinks" size="sm" />
</div>
</div>
</footer>
Installation
php artisan ui:add blocks/footer-minimal
Registry contract
Install confidence
php artisan ui:add blocks/footer-minimal
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.3
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/footer-minimal.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 Minimal (`footer-minimal`)
A single-row minimal footer with brand wordmark, copyright, legal links, and social icon buttons separated by a rule.
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-minimal
```
## Render it
```blade
<x-blocks.footer-minimal />
```
## Props
- `brand` (string, default `Acme`)
- `brand-href` (string, default `#`)
- `copyright` (mixed|null, default `null`)
- `links` (mixed|null, default `null`)
- `socials` (mixed|null, default `null`)
## Use when
- Closing a site with a single-row minimal footer: brand wordmark, copyright, legal links and social icon buttons.
- Fitting a page that needs the smallest possible footer footprint.
## Avoid when
- Use footer-centered for a centred minimal footer with a wrapping nav row, or footer-columns for a full multi-column footer.
## Rules
- Render the installed block with `<x-blocks.footer-minimal />` 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-minimal
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/footer-minimal.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 site with a single-row minimal footer: brand wordmark, copyright, legal links and social icon buttons.
- Fitting a page that needs the smallest possible footer footprint.
Avoid when
- Use footer-centered for a centred minimal footer with a wrapping nav row, or footer-columns for a full multi-column footer.
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-minimal />
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',
'brandHref' => '#',
'copyright' => null,
'links' => null,
'socials' => null,
])
@php
$copyright ??= '© '.date('Y').' Acme, Inc. All rights reserved.';
$links ??= [
['label' => 'Privacy', 'href' => '#'],
['label' => 'Terms', 'href' => '#'],
['label' => 'Contact', 'href' => '#'],
];
$socials ??= [
['platform' => 'x', 'label' => 'X', 'href' => '#'],
['platform' => 'github', 'label' => 'GitHub', 'href' => '#'],
['platform' => 'linkedin', 'label' => 'LinkedIn', 'href' => '#'],
];
// 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);
@endphp
<footer {{ $attributes->merge(['class' => 'bg-background text-foreground']) }}>
<x-ui.separator />
<div class="mx-auto flex max-w-7xl flex-col items-center gap-4 px-4 py-8 sm:flex-row sm:justify-between sm:px-6 lg:px-8">
{{-- Brand + copyright --}}
<div class="flex flex-col items-center gap-2 text-center sm:flex-row sm:gap-4 sm:text-start">
<x-ui.brand :href="$brandHref" :label="$brand" />
<p class="text-sm text-muted-foreground">{{ $copyright }}</p>
</div>
{{-- Legal links + social buttons --}}
<div class="flex flex-wrap items-center justify-center gap-4">
<ul class="flex items-center gap-4">
@foreach ($links as $link)
<li>
<a href="{{ $link['href'] }}" class="text-sm text-muted-foreground transition-colors hover:text-foreground">
{{ __($link['label']) }}
</a>
</li>
@endforeach
</ul>
<x-ui.separator orientation="vertical" class="hidden h-5 sm:block" />
<x-ui.social-links :links="$socialLinks" size="sm" />
</div>
</div>
</footer>
Ownership & lifecycle
Owner, release state, review evidence and adoption for this item.
- Owner
- Platform UI (@JoshJML)
- Current version
-
1.1.3 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0