Skip to content
Brok UI

Loading…

No results

Auth

Open source

Authentication screens — sign in / sign up with split brand panels, testimonial sidebars and patterned backdrops, plus two-factor, password-recovery and email-verification cards.

Preview

11 of 12

resources/views/blocks/auth-verify-email.blade.php Blade
@props([
    'heading' => 'Check your inbox',
    'email' => 'you@example.com',
    'openHref' => '#',
    'resendAction' => '#',
    'changeHref' => '#',
])

{{--
    Verify Email — a centered confirmation card shown after sign-up. A mail icon
    chip anchors a "Check your inbox" heading and a description that names the
    address the link was sent to. A primary "Open email app" action and an
    outline "Resend email" action (with a small countdown hint) sit above a
    divider, with a muted "Change email" escape hatch below.

    No network calls: the resend control is a real POST form with @csrf; the
    countdown hint is static copy. The address is echoed with {{ }} so any
    consumer-supplied value is auto-escaped.
--}}

<x-ui.section space="md" class="flex min-h-svh items-center justify-center px-4" {{ $attributes }}>
    <x-ui.card class="w-full max-w-sm">
        <x-ui.card.header class="items-center text-center">
            <span
                data-slot="verify-email-icon"
                data-animate="pop"
                aria-hidden="true"
                class="mb-2 flex size-12 items-center justify-center rounded-full bg-primary/10 text-primary"
            >
                <svg
                    xmlns="http://www.w3.org/2000/svg"
                    viewBox="0 0 24 24"
                    fill="none"
                    stroke="currentColor"
                    stroke-width="1.75"
                    stroke-linecap="round"
                    stroke-linejoin="round"
                    class="size-6"
                >
                    <rect x="3" y="5" width="18" height="14" rx="2" />
                    <path d="m3 7 9 6 9-6" />
                </svg>
            </span>
            <x-ui.card.title data-animate="rise" data-animate-order="1" class="text-2xl">{{ __($heading) }}</x-ui.card.title>
            <x-ui.card.description data-animate="rise" data-animate-order="2">
                {{ __('We sent a verification link to') }}
                <span class="font-medium text-foreground">{{ $email }}</span>
            </x-ui.card.description>
        </x-ui.card.header>

        <x-ui.card.content data-animate="rise" data-animate-order="3" class="space-y-4">
            <x-ui.button :href="$openHref" class="w-full">
                {{ __('Open email app') }}
            </x-ui.button>

            <form method="POST" action="{{ $resendAction }}">
                @csrf
                <x-ui.button type="submit" variant="outline" class="w-full">
                    {{ __('Resend email') }}
                </x-ui.button>
            </form>

            <p class="text-center text-xs text-muted-foreground">
                {{ __('You can resend in 30s.') }}
            </p>
        </x-ui.card.content>

        <x-ui.card.footer class="flex-col gap-4">
            <x-ui.separator />
            <p class="text-center text-sm text-muted-foreground">
                {{ __('Wrong address?') }}
                <a href="{{ $changeHref }}" class="font-medium text-link hover:underline">{{ __('Change email') }}</a>
            </p>
        </x-ui.card.footer>
    </x-ui.card>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/auth-verify-email

Installs these dependencies automatically:

Registry contract

Install confidence

php artisan ui:add blocks/auth-verify-email 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.5
License
open
Stability
stable
Contract
v1
Foundation
≥ 1.0.0
Type Generated target
blade resources/views/blocks/auth-verify-email.blade.php

Registry dependencies

button card section separator

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.

auth-verify-email.md
# Brok UI block: Verify Email (`auth-verify-email`)

A centered verify-email card with a mail icon chip, open-email-app and resend buttons, a divider, and a change-email link.

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/auth-verify-email
```

## Render it

```blade
<x-blocks.auth-verify-email />
```

## Props

- `heading` (string, default `Check your inbox`)
- `email` (string, default `[email protected]`)
- `open-href` (string, default `#`)
- `resend-action` (string, default `#`)
- `change-href` (string, default `#`)

## Use when

- Confirming to a newly registered user that a verification email was sent, naming the address it was sent to.
- Offering an open-email-app action and a resend action, with a change-email escape hatch below.

## Avoid when

- Use auth-two-factor for a numeric one-time code instead of an email link, or auth-sign-up for the preceding registration form.

## Rules

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

  • Confirming to a newly registered user that a verification email was sent, naming the address it was sent to.
  • Offering an open-email-app action and a resend action, with a change-email escape hatch below.

Avoid when

  • Use auth-two-factor for a numeric one-time code instead of an email link, or auth-sign-up for the preceding registration form.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.
Anatomy
root verify-email-icon

Usage

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

resources/views/welcome.blade.php Blade
<x-blocks.auth-verify-email />

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/auth-verify-email.blade.php Blade
@props([
    'heading' => 'Check your inbox',
    'email' => 'you@example.com',
    'openHref' => '#',
    'resendAction' => '#',
    'changeHref' => '#',
])

{{--
    Verify Email — a centered confirmation card shown after sign-up. A mail icon
    chip anchors a "Check your inbox" heading and a description that names the
    address the link was sent to. A primary "Open email app" action and an
    outline "Resend email" action (with a small countdown hint) sit above a
    divider, with a muted "Change email" escape hatch below.

    No network calls: the resend control is a real POST form with @csrf; the
    countdown hint is static copy. The address is echoed with {{ }} so any
    consumer-supplied value is auto-escaped.
--}}

<x-ui.section space="md" class="flex min-h-svh items-center justify-center px-4" {{ $attributes }}>
    <x-ui.card class="w-full max-w-sm">
        <x-ui.card.header class="items-center text-center">
            <span
                data-slot="verify-email-icon"
                data-animate="pop"
                aria-hidden="true"
                class="mb-2 flex size-12 items-center justify-center rounded-full bg-primary/10 text-primary"
            >
                <svg
                    xmlns="http://www.w3.org/2000/svg"
                    viewBox="0 0 24 24"
                    fill="none"
                    stroke="currentColor"
                    stroke-width="1.75"
                    stroke-linecap="round"
                    stroke-linejoin="round"
                    class="size-6"
                >
                    <rect x="3" y="5" width="18" height="14" rx="2" />
                    <path d="m3 7 9 6 9-6" />
                </svg>
            </span>
            <x-ui.card.title data-animate="rise" data-animate-order="1" class="text-2xl">{{ __($heading) }}</x-ui.card.title>
            <x-ui.card.description data-animate="rise" data-animate-order="2">
                {{ __('We sent a verification link to') }}
                <span class="font-medium text-foreground">{{ $email }}</span>
            </x-ui.card.description>
        </x-ui.card.header>

        <x-ui.card.content data-animate="rise" data-animate-order="3" class="space-y-4">
            <x-ui.button :href="$openHref" class="w-full">
                {{ __('Open email app') }}
            </x-ui.button>

            <form method="POST" action="{{ $resendAction }}">
                @csrf
                <x-ui.button type="submit" variant="outline" class="w-full">
                    {{ __('Resend email') }}
                </x-ui.button>
            </form>

            <p class="text-center text-xs text-muted-foreground">
                {{ __('You can resend in 30s.') }}
            </p>
        </x-ui.card.content>

        <x-ui.card.footer class="flex-col gap-4">
            <x-ui.separator />
            <p class="text-center text-sm text-muted-foreground">
                {{ __('Wrong address?') }}
                <a href="{{ $changeHref }}" class="font-medium text-link hover:underline">{{ __('Change email') }}</a>
            </p>
        </x-ui.card.footer>
    </x-ui.card>
</x-ui.section>

Ownership & lifecycle

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