Skip to content
Brok UI

Loading…

No results

Not Found

Open source

404 sections — a bold centered layout, a masked oversized numeral, and one with a search field and helpful links.

Preview

resources/views/blocks/not-found-bold.blade.php Blade
@props([
    'code' => '404',
    'heading' => 'Page not found',
    'subheading' => "Sorry, we couldn't find the page you're looking for. It may have been moved, renamed, or never existed.",
    'homeCta' => 'Go back home',
    'homeHref' => '#',
    'supportCta' => 'Contact support',
    'supportHref' => '#',
])

<section {{ $attributes->merge(['class' => 'grid min-h-[70vh] place-items-center bg-background px-4 py-16 text-foreground']) }}>
    <div class="mx-auto max-w-xl text-center">
        @if ($code)
            <x-ui.badge variant="secondary" class="mb-6">{{ __($code) }}</x-ui.badge>
        @endif

        <h1 class="text-balance text-4xl font-bold tracking-tight sm:text-5xl lg:text-6xl">
            {{ __($heading) }}
        </h1>

        <p class="mx-auto mt-6 max-w-md text-pretty text-lg text-muted-foreground">
            {{ __($subheading) }}
        </p>

        <div class="mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row">
            <x-ui.button :href="$homeHref" size="lg" class="w-full sm:w-auto">
                <svg class="size-4 text-current 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="M19 12H5" />
                    <path d="m12 19-7-7 7-7" />
                </svg>
                {{ __($homeCta) }}
            </x-ui.button>

            @if ($supportCta)
                <x-ui.button :href="$supportHref" size="lg" variant="outline" class="w-full sm:w-auto">{{ __($supportCta) }}</x-ui.button>
            @endif
        </div>
    </div>
</section>

Installation

terminal
php artisan ui:add blocks/not-found-bold

Installs these dependencies automatically:

Registry contract

Install confidence

php artisan ui:add blocks/not-found-bold 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.4
License
open
Stability
stable
Contract
v1
Foundation
≥ 1.0.0
Type Generated target
blade resources/views/blocks/not-found-bold.blade.php

Registry dependencies

button badge

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.

not-found-bold.md
# Brok UI block: Not Found (`not-found-bold`)

A centered 404 page with a badge, large heading, muted explanation, and a dual home/support button row with an RTL-flipping back arrow.

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/not-found-bold
```

## Render it

```blade
<x-blocks.not-found-bold />
```

## Props

- `code` (string, default `404`) — Error code shown in the badge above the heading.
- `heading` (string, default `Page not found`) — Primary heading.
- `subheading` (string, default `Sorry, we couldn't find the page you're looking for. It may have been moved, renamed, or never existed.`) — Supporting copy under the heading.
- `home-cta` (string, default `Go back home`) — Primary button label.
- `home-href` (string, default `#`) — Primary button destination.
- `support-cta` (string, default `Contact support`) — Secondary button label; falsy hides the secondary button.
- `support-href` (string, default `#`) — Secondary button destination.

## Use when

- Showing a minimal centred 404 page with a code badge, heading, muted explanation, and a primary home button plus a secondary support button.
- Wanting the simplest not-found layout without a search field or a link grid.

## Avoid when

- Needing a search field or a grid of suggested destinations; use not-found-links, or use not-found-masked for an oversized masked-numeral treatment.

## Rules

- Render the installed block with `<x-blocks.not-found-bold />` 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/not-found-bold
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/not-found-bold.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

  • Showing a minimal centred 404 page with a code badge, heading, muted explanation, and a primary home button plus a secondary support button.
  • Wanting the simplest not-found layout without a search field or a link grid.

Avoid when

  • Needing a search field or a grid of suggested destinations; use not-found-links, or use not-found-masked for an oversized masked-numeral treatment.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.
Anatomy
code badge heading subheading home button support button

Usage

Render the block as a component, passing data where useful:

resources/views/welcome.blade.php Blade
<x-blocks.not-found-bold />

Built from primitives

Composes <brok:*> Semantic tokens Re-themeable RTL-ready

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.

resources/views/blocks/not-found-bold.blade.php Blade
@props([
    'code' => '404',
    'heading' => 'Page not found',
    'subheading' => "Sorry, we couldn't find the page you're looking for. It may have been moved, renamed, or never existed.",
    'homeCta' => 'Go back home',
    'homeHref' => '#',
    'supportCta' => 'Contact support',
    'supportHref' => '#',
])

<section {{ $attributes->merge(['class' => 'grid min-h-[70vh] place-items-center bg-background px-4 py-16 text-foreground']) }}>
    <div class="mx-auto max-w-xl text-center">
        @if ($code)
            <x-ui.badge variant="secondary" class="mb-6">{{ __($code) }}</x-ui.badge>
        @endif

        <h1 class="text-balance text-4xl font-bold tracking-tight sm:text-5xl lg:text-6xl">
            {{ __($heading) }}
        </h1>

        <p class="mx-auto mt-6 max-w-md text-pretty text-lg text-muted-foreground">
            {{ __($subheading) }}
        </p>

        <div class="mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row">
            <x-ui.button :href="$homeHref" size="lg" class="w-full sm:w-auto">
                <svg class="size-4 text-current 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="M19 12H5" />
                    <path d="m12 19-7-7 7-7" />
                </svg>
                {{ __($homeCta) }}
            </x-ui.button>

            @if ($supportCta)
                <x-ui.button :href="$supportHref" size="lg" variant="outline" class="w-full sm:w-auto">{{ __($supportCta) }}</x-ui.button>
            @endif
        </div>
    </div>
</section>

Ownership & lifecycle

Owner, release state, review evidence and adoption for this item.
Owner
Platform UI (@JoshJML)
Current version
1.0.4
Status
Stable
License
open
Deprecation
Not deprecated
Contract
v1
Foundation
≥ 1.0.0