Auth
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
@props([
'brand' => 'Acme Inc.',
'tagline' => 'Build, ship, and scale your product with a UI you actually own.',
'heading' => 'Sign in to your account',
'subheading' => 'Welcome back. Enter your details to continue.',
'action' => '#',
'registerHref' => '#',
'forgotHref' => '#',
'quote' => null,
])
@php
$quote ??= [
'body' => 'This is the cleanest auth flow we have shipped. Our team was productive on day one.',
'name' => 'Jordan Rivera',
'role' => 'Head of Engineering, Northwind',
'initials' => 'JR',
];
@endphp
<x-ui.section data-slot="auth-04" space="none" class="grid min-h-svh lg:grid-cols-2" {{ $attributes }}>
{{-- Brand panel --}}
<div class="relative hidden flex-col justify-between overflow-hidden bg-gradient-to-br from-primary via-primary to-primary/70 p-10 text-primary-foreground lg:flex">
<div class="flex items-center gap-2">
<span class="flex size-9 items-center justify-center rounded-md bg-primary-foreground/15 ring-1 ring-inset ring-primary-foreground/20">
<svg class="size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 2 2 7l10 5 10-5-10-5Z" />
<path d="m2 17 10 5 10-5" />
<path d="m2 12 10 5 10-5" />
</svg>
</span>
<span class="text-lg font-semibold tracking-tight">{{ __($brand) }}</span>
</div>
<p class="max-w-md text-pretty text-2xl font-medium leading-snug">
{{ __($tagline) }}
</p>
<figure class="max-w-md">
<blockquote class="text-pretty text-sm text-primary-foreground">
“{{ __($quote['body']) }}”
</blockquote>
<figcaption class="mt-6 flex items-center gap-4">
<x-ui.avatar size="sm" class="bg-primary-foreground/15 text-primary-foreground ring-1 ring-inset ring-primary-foreground/20">
{{ $quote['initials'] }}
</x-ui.avatar>
<div class="text-sm">
<div class="font-medium">{{ $quote['name'] }}</div>
<div class="text-primary-foreground">{{ __($quote['role']) }}</div>
</div>
</figcaption>
</figure>
</div>
{{-- Sign-in panel --}}
<div class="flex items-center justify-center px-4 py-12 sm:px-6">
<x-ui.card class="w-full max-w-sm">
<x-ui.card.header class="text-center">
<x-ui.card.title class="text-2xl">{{ __($heading) }}</x-ui.card.title>
<x-ui.card.description>{{ __($subheading) }}</x-ui.card.description>
</x-ui.card.header>
<x-ui.card.content>
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
<x-ui.social-button provider="google" type="button" block :label="__('Google')" />
<x-ui.social-button provider="github" type="button" block :label="__('GitHub')" />
</div>
<div class="my-6 flex items-center gap-4">
<x-ui.separator class="flex-1" />
<span class="text-sm uppercase tracking-wide text-muted-foreground">{{ __('Or continue with') }}</span>
<x-ui.separator class="flex-1" />
</div>
<form method="POST" action="{{ $action }}" class="space-y-4">
@csrf
<x-ui.field>
<x-ui.label for="auth-split-email" required>{{ __('Email address') }}</x-ui.label>
<x-ui.input id="auth-split-email" type="email" name="email" autocomplete="email" required placeholder="{{ __('you@example.com') }}" />
</x-ui.field>
<x-ui.field>
<div class="flex items-center justify-between">
<x-ui.label for="auth-split-password" required>{{ __('Password') }}</x-ui.label>
<a href="{{ $forgotHref }}" class="text-sm font-medium text-link hover:underline">{{ __('Forgot?') }}</a>
</div>
<x-ui.input id="auth-split-password" type="password" name="password" autocomplete="current-password" required />
</x-ui.field>
<label for="auth-split-remember" class="flex items-center gap-2 text-sm text-muted-foreground">
<x-ui.checkbox id="auth-split-remember" name="remember" />
{{ __('Remember me') }}
</label>
<x-ui.button type="submit" class="w-full">{{ __('Sign in') }}</x-ui.button>
</form>
</x-ui.card.content>
<x-ui.card.footer class="justify-center">
<p class="text-sm text-muted-foreground">
{{ __("Don't have an account?") }}
<a href="{{ $registerHref }}" class="font-medium text-link hover:underline">{{ __('Sign up') }}</a>
</p>
</x-ui.card.footer>
</x-ui.card>
</div>
</x-ui.section>
Installation
php artisan ui:add blocks/auth-split
Registry contract
Install confidence
php artisan ui:add blocks/auth-split
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.2.3
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/auth-split.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: Auth Split (`auth-split`)
Full-height two-column auth layout with a gradient brand panel and a centered sign-in card featuring social buttons, an email/password form, and remember-me.
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-split
```
## Render it
```blade
<x-blocks.auth-split />
```
## Props
- `brand` (string, default `Acme Inc.`)
- `tagline` (string, default `Build, ship, and scale your product with a UI you actually own.`)
- `heading` (string, default `Sign in to your account`)
- `subheading` (string, default `Welcome back. Enter your details to continue.`)
- `action` (string, default `#`)
- `register-href` (string, default `#`)
- `forgot-href` (string, default `#`)
- `quote` (mixed|null, default `null`)
## Use when
- Signing a user in on a full-height two-column layout: a gradient brand panel with a tagline beside a centred sign-in card.
- Pairing social sign-in buttons with a conventional email/password form and a remember-me checkbox.
## Avoid when
- Use auth-sign-in for a single-column login card without a brand panel, or auth-testimonial for a testimonial sidebar instead of a brand panel.
## Rules
- Render the installed block with `<x-blocks.auth-split />` 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-split
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/auth-split.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
- Signing a user in on a full-height two-column layout: a gradient brand panel with a tagline beside a centred sign-in card.
- Pairing social sign-in buttons with a conventional email/password form and a remember-me checkbox.
Avoid when
- Use auth-sign-in for a single-column login card without a brand panel, or auth-testimonial for a testimonial sidebar instead of a brand panel.
Anti-patterns
- Do not replace semantic props with conflicting utility classes.
- Do not remove labels, focus styles, or state attributes.
- Anatomy
Usage
Render the block as a component, passing data where useful:
<x-blocks.auth-split />
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 Inc.',
'tagline' => 'Build, ship, and scale your product with a UI you actually own.',
'heading' => 'Sign in to your account',
'subheading' => 'Welcome back. Enter your details to continue.',
'action' => '#',
'registerHref' => '#',
'forgotHref' => '#',
'quote' => null,
])
@php
$quote ??= [
'body' => 'This is the cleanest auth flow we have shipped. Our team was productive on day one.',
'name' => 'Jordan Rivera',
'role' => 'Head of Engineering, Northwind',
'initials' => 'JR',
];
@endphp
<x-ui.section data-slot="auth-04" space="none" class="grid min-h-svh lg:grid-cols-2" {{ $attributes }}>
{{-- Brand panel --}}
<div class="relative hidden flex-col justify-between overflow-hidden bg-gradient-to-br from-primary via-primary to-primary/70 p-10 text-primary-foreground lg:flex">
<div class="flex items-center gap-2">
<span class="flex size-9 items-center justify-center rounded-md bg-primary-foreground/15 ring-1 ring-inset ring-primary-foreground/20">
<svg class="size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 2 2 7l10 5 10-5-10-5Z" />
<path d="m2 17 10 5 10-5" />
<path d="m2 12 10 5 10-5" />
</svg>
</span>
<span class="text-lg font-semibold tracking-tight">{{ __($brand) }}</span>
</div>
<p class="max-w-md text-pretty text-2xl font-medium leading-snug">
{{ __($tagline) }}
</p>
<figure class="max-w-md">
<blockquote class="text-pretty text-sm text-primary-foreground">
“{{ __($quote['body']) }}”
</blockquote>
<figcaption class="mt-6 flex items-center gap-4">
<x-ui.avatar size="sm" class="bg-primary-foreground/15 text-primary-foreground ring-1 ring-inset ring-primary-foreground/20">
{{ $quote['initials'] }}
</x-ui.avatar>
<div class="text-sm">
<div class="font-medium">{{ $quote['name'] }}</div>
<div class="text-primary-foreground">{{ __($quote['role']) }}</div>
</div>
</figcaption>
</figure>
</div>
{{-- Sign-in panel --}}
<div class="flex items-center justify-center px-4 py-12 sm:px-6">
<x-ui.card class="w-full max-w-sm">
<x-ui.card.header class="text-center">
<x-ui.card.title class="text-2xl">{{ __($heading) }}</x-ui.card.title>
<x-ui.card.description>{{ __($subheading) }}</x-ui.card.description>
</x-ui.card.header>
<x-ui.card.content>
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
<x-ui.social-button provider="google" type="button" block :label="__('Google')" />
<x-ui.social-button provider="github" type="button" block :label="__('GitHub')" />
</div>
<div class="my-6 flex items-center gap-4">
<x-ui.separator class="flex-1" />
<span class="text-sm uppercase tracking-wide text-muted-foreground">{{ __('Or continue with') }}</span>
<x-ui.separator class="flex-1" />
</div>
<form method="POST" action="{{ $action }}" class="space-y-4">
@csrf
<x-ui.field>
<x-ui.label for="auth-split-email" required>{{ __('Email address') }}</x-ui.label>
<x-ui.input id="auth-split-email" type="email" name="email" autocomplete="email" required placeholder="{{ __('you@example.com') }}" />
</x-ui.field>
<x-ui.field>
<div class="flex items-center justify-between">
<x-ui.label for="auth-split-password" required>{{ __('Password') }}</x-ui.label>
<a href="{{ $forgotHref }}" class="text-sm font-medium text-link hover:underline">{{ __('Forgot?') }}</a>
</div>
<x-ui.input id="auth-split-password" type="password" name="password" autocomplete="current-password" required />
</x-ui.field>
<label for="auth-split-remember" class="flex items-center gap-2 text-sm text-muted-foreground">
<x-ui.checkbox id="auth-split-remember" name="remember" />
{{ __('Remember me') }}
</label>
<x-ui.button type="submit" class="w-full">{{ __('Sign in') }}</x-ui.button>
</form>
</x-ui.card.content>
<x-ui.card.footer class="justify-center">
<p class="text-sm text-muted-foreground">
{{ __("Don't have an account?") }}
<a href="{{ $registerHref }}" class="font-medium text-link hover:underline">{{ __('Sign up') }}</a>
</p>
</x-ui.card.footer>
</x-ui.card>
</div>
</x-ui.section>
Ownership & lifecycle
Owner, release state, review evidence and adoption for this item.
- Owner
- Platform UI (@JoshJML)
- Current version
-
1.2.3 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0