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-masked.blade.php Blade
@props([
    'code' => '404',
    'heading' => 'This page is lost in space',
    'subheading' => 'The page you are looking for drifted off course or never existed. Let us guide you back to familiar ground.',
    'homeCta' => 'Take me home',
    'homeHref' => '#',
    'searchCta' => 'Search the site',
    'searchHref' => '#',
])

<x-ui.section space="none" class="relative isolate flex min-h-[70vh] items-center justify-center overflow-hidden" {{ $attributes }}>
    <div aria-hidden="true" class="pointer-events-none absolute inset-0 -z-10 bg-gradient-to-b from-primary/10 via-background to-background"></div>

    <div class="mx-auto max-w-2xl px-4 py-20 text-center">
        <x-ui.text-gradient
            as="p"
            from="from-primary"
            to="to-foreground"
            class="select-none text-7xl font-bold leading-none tracking-tighter sm:text-8xl lg:text-9xl"
            aria-hidden="true"
        >{{ $code }}</x-ui.text-gradient>

        <h1 class="mt-8 text-balance text-3xl font-bold tracking-tight sm:text-4xl">
            <span class="sr-only">{{ $code }} — </span>{{ __($heading) }}
        </h1>

        <p class="mx-auto mt-4 max-w-md text-pretty text-base text-muted-foreground sm:text-lg">
            {{ __($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">{{ __($homeCta) }}</x-ui.button>
            @if ($searchCta)
                <x-ui.button :href="$searchHref" size="lg" variant="outline" class="w-full sm:w-auto">{{ __($searchCta) }}</x-ui.button>
            @endif
        </div>
    </div>
</x-ui.section>

Installation

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

Installs these dependencies automatically:

Registry contract

Install confidence

php artisan ui:add blocks/not-found-masked 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/not-found-masked.blade.php

Registry dependencies

button section text-gradient

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-masked.md
# Brok UI block: Not Found Masked (`not-found-masked`)

A centered 404 page with an enormous token-gradient masked numeral, a lost-in-space heading, muted copy, and primary home plus outline search calls to action.

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-masked
```

## Render it

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

## Props

- `code` (string, default `404`) — Error code rendered as the large gradient numeral and echoed for screen readers.
- `heading` (string, default `This page is lost in space`) — Primary heading.
- `subheading` (string, default `The page you are looking for drifted off course or never existed. Let us guide you back to familiar ground.`) — Supporting copy under the heading.
- `home-cta` (string, default `Take me home`) — Primary button label.
- `home-href` (string, default `#`) — Primary button destination.
- `search-cta` (string, default `Search the site`) — Secondary button label; falsy hides the secondary button.
- `search-href` (string, default `#`) — Secondary button destination.

## Use when

- Showing a 404 page with a large decorative token-gradient numeral and a playful 'lost in space' message.
- Pairing a primary home button with a secondary link to site search.

## Avoid when

- Needing a plain minimal 404 with support contact instead of search, or a grid of suggested links; use not-found-bold or not-found-links.

## Rules

- Render the installed block with `<x-blocks.not-found-masked />` 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-masked
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/not-found-masked.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 404 page with a large decorative token-gradient numeral and a playful 'lost in space' message.
  • Pairing a primary home button with a secondary link to site search.

Avoid when

  • Needing a plain minimal 404 with support contact instead of search, or a grid of suggested links; use not-found-bold or not-found-links.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.
Anatomy
background gradient wash large masked numeral heading subheading home button search button

Usage

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

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

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-masked.blade.php Blade
@props([
    'code' => '404',
    'heading' => 'This page is lost in space',
    'subheading' => 'The page you are looking for drifted off course or never existed. Let us guide you back to familiar ground.',
    'homeCta' => 'Take me home',
    'homeHref' => '#',
    'searchCta' => 'Search the site',
    'searchHref' => '#',
])

<x-ui.section space="none" class="relative isolate flex min-h-[70vh] items-center justify-center overflow-hidden" {{ $attributes }}>
    <div aria-hidden="true" class="pointer-events-none absolute inset-0 -z-10 bg-gradient-to-b from-primary/10 via-background to-background"></div>

    <div class="mx-auto max-w-2xl px-4 py-20 text-center">
        <x-ui.text-gradient
            as="p"
            from="from-primary"
            to="to-foreground"
            class="select-none text-7xl font-bold leading-none tracking-tighter sm:text-8xl lg:text-9xl"
            aria-hidden="true"
        >{{ $code }}</x-ui.text-gradient>

        <h1 class="mt-8 text-balance text-3xl font-bold tracking-tight sm:text-4xl">
            <span class="sr-only">{{ $code }} — </span>{{ __($heading) }}
        </h1>

        <p class="mx-auto mt-4 max-w-md text-pretty text-base text-muted-foreground sm:text-lg">
            {{ __($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">{{ __($homeCta) }}</x-ui.button>
            @if ($searchCta)
                <x-ui.button :href="$searchHref" size="lg" variant="outline" class="w-full sm:w-auto">{{ __($searchCta) }}</x-ui.button>
            @endif
        </div>
    </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