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

5 of 12

resources/views/blocks/auth-testimonial.blade.php Blade
@props([
    'brand' => 'Acme Inc',
    'quote' => 'Switching to this platform cut our onboarding time in half. The team owns every line of UI now — no lock-in, no surprises, just ship.',
    'authorName' => 'Avery Chen',
    'authorRole' => 'Head of Product, Northwind',
    'authorAvatar' => null,
    'authorInitials' => 'AC',
    'heading' => 'Create your account',
    'subheading' => 'Start your free trial. No credit card required.',
    'action' => '#',
    'loginHref' => '#',
    'termsHref' => '#',
    'privacyHref' => '#',
])

<x-ui.section space="none" {{ $attributes }}>
    <div class="mx-auto grid min-h-svh w-full max-w-6xl grid-cols-1 lg:grid-cols-2">
        {{-- Testimonial sidebar --}}
        <aside class="relative isolate hidden overflow-hidden bg-muted text-foreground lg:flex lg:flex-col lg:justify-between">
            <div class="absolute inset-0 -z-10 bg-gradient-to-br from-primary/15 via-muted to-background" aria-hidden="true"></div>

            <div class="px-10 pt-10">
                <x-ui.brand :label="__($brand)" />
            </div>

            <figure class="px-10 pb-12">
                <svg class="mb-6 size-10 text-primary/40" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
                    <path d="M9.5 6C6.46 6 4 8.46 4 11.5V18h6v-6H7.5c0-1.66 1.34-3 3-3V6h-1Zm10 0c-3.04 0-5.5 2.46-5.5 5.5V18h6v-6h-2.5c0-1.66 1.34-3 3-3V6h-1Z" />
                </svg>
                <blockquote class="text-2xl font-medium leading-snug text-balance">
                    {{ __($quote) }}
                </blockquote>
                <figcaption class="mt-8 flex items-center gap-4">
                    <x-ui.avatar :src="$authorAvatar" :alt="$authorName" :fallback="$authorInitials" size="md" />
                    <div class="text-start">
                        <div class="text-sm font-semibold">{{ __($authorName) }}</div>
                        <div class="text-sm text-muted-foreground">{{ __($authorRole) }}</div>
                    </div>
                </figcaption>
            </figure>
        </aside>

        {{-- Sign-up form --}}
        <div class="flex items-center justify-center px-4 py-12 sm:px-8">
            <x-ui.card class="w-full max-w-sm border-border shadow-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>
                    <form method="POST" action="{{ $action }}" class="space-y-4">
                        @csrf

                        <x-ui.field>
                            <x-ui.label for="signup-name" required>{{ __('Full name') }}</x-ui.label>
                            <x-ui.input id="signup-name" type="text" name="name" autocomplete="name" required placeholder="{{ __('Jane Doe') }}" />
                        </x-ui.field>

                        <x-ui.field>
                            <x-ui.label for="signup-email" required>{{ __('Email address') }}</x-ui.label>
                            <x-ui.input id="signup-email" type="email" name="email" autocomplete="email" required placeholder="{{ __('you@example.com') }}" />
                        </x-ui.field>

                        <x-ui.field>
                            <x-ui.label for="signup-password" required>{{ __('Password') }}</x-ui.label>
                            <x-ui.input id="signup-password" type="password" name="password" autocomplete="new-password" required />
                        </x-ui.field>

                        <x-ui.button type="submit" class="w-full">{{ __('Create account') }}</x-ui.button>
                    </form>

                    <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') }}</span>
                        <x-ui.separator class="flex-1" />
                    </div>

                    <x-ui.social-button provider="google" type="button" block :label="__('Sign up with Google')" />

                    <p class="mt-6 text-center text-sm text-muted-foreground">
                        {{ __('By signing up, you agree to our') }}
                        <a href="{{ $termsHref }}" class="font-medium text-link hover:underline">{{ __('Terms') }}</a>
                        {{ __('and') }}
                        <a href="{{ $privacyHref }}" class="font-medium text-link hover:underline">{{ __('Privacy Policy') }}</a>.
                    </p>
                </x-ui.card.content>

                <x-ui.card.footer class="justify-center">
                    <p class="text-sm text-muted-foreground">
                        {{ __('Already have an account?') }}
                        <a href="{{ $loginHref }}" class="font-medium text-link hover:underline">{{ __('Sign in') }}</a>
                    </p>
                </x-ui.card.footer>
            </x-ui.card>
        </div>
    </div>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/auth-testimonial

Registry contract

Install confidence

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

Registry dependencies

avatar brand button card field input label section separator social-button

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-testimonial.md
# Brok UI block: Auth Testimonial (`auth-testimonial`)

Two-column auth split: a token-gradient testimonial sidebar with a customer quote and avatar beside a sign-up card with name/email/password fields, social button, and terms.

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

## Render it

```blade
<x-blocks.auth-testimonial />
```

## Props

- `brand` (string, default `Acme Inc`)
- `quote` (string, default `Switching to this platform cut our onboarding time in half. The team owns every line of UI now — no lock-in, no surprises, just ship.`)
- `author-name` (string, default `Avery Chen`)
- `author-role` (string, default `Head of Product, Northwind`)
- `author-avatar` (mixed|null, default `null`)
- `author-initials` (string, default `AC`)
- `heading` (string, default `Create your account`)
- `subheading` (string, default `Start your free trial. No credit card required.`)
- `action` (string, default `#`)
- `login-href` (string, default `#`)
- `terms-href` (string, default `#`)
- `privacy-href` (string, default `#`)

## Use when

- Registering a new user on a two-column layout: a testimonial sidebar with a customer quote and avatar beside a sign-up card.
- Reassuring a prospective sign-up with social proof rather than a plain brand tagline.

## Avoid when

- Use auth-split for a plain brand panel instead of a testimonial, or auth-sign-up for a single-column registration card.

## Rules

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

  • Registering a new user on a two-column layout: a testimonial sidebar with a customer quote and avatar beside a sign-up card.
  • Reassuring a prospective sign-up with social proof rather than a plain brand tagline.

Avoid when

  • Use auth-split for a plain brand panel instead of a testimonial, or auth-sign-up for a single-column registration card.

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:

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

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-testimonial.blade.php Blade
@props([
    'brand' => 'Acme Inc',
    'quote' => 'Switching to this platform cut our onboarding time in half. The team owns every line of UI now — no lock-in, no surprises, just ship.',
    'authorName' => 'Avery Chen',
    'authorRole' => 'Head of Product, Northwind',
    'authorAvatar' => null,
    'authorInitials' => 'AC',
    'heading' => 'Create your account',
    'subheading' => 'Start your free trial. No credit card required.',
    'action' => '#',
    'loginHref' => '#',
    'termsHref' => '#',
    'privacyHref' => '#',
])

<x-ui.section space="none" {{ $attributes }}>
    <div class="mx-auto grid min-h-svh w-full max-w-6xl grid-cols-1 lg:grid-cols-2">
        {{-- Testimonial sidebar --}}
        <aside class="relative isolate hidden overflow-hidden bg-muted text-foreground lg:flex lg:flex-col lg:justify-between">
            <div class="absolute inset-0 -z-10 bg-gradient-to-br from-primary/15 via-muted to-background" aria-hidden="true"></div>

            <div class="px-10 pt-10">
                <x-ui.brand :label="__($brand)" />
            </div>

            <figure class="px-10 pb-12">
                <svg class="mb-6 size-10 text-primary/40" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
                    <path d="M9.5 6C6.46 6 4 8.46 4 11.5V18h6v-6H7.5c0-1.66 1.34-3 3-3V6h-1Zm10 0c-3.04 0-5.5 2.46-5.5 5.5V18h6v-6h-2.5c0-1.66 1.34-3 3-3V6h-1Z" />
                </svg>
                <blockquote class="text-2xl font-medium leading-snug text-balance">
                    {{ __($quote) }}
                </blockquote>
                <figcaption class="mt-8 flex items-center gap-4">
                    <x-ui.avatar :src="$authorAvatar" :alt="$authorName" :fallback="$authorInitials" size="md" />
                    <div class="text-start">
                        <div class="text-sm font-semibold">{{ __($authorName) }}</div>
                        <div class="text-sm text-muted-foreground">{{ __($authorRole) }}</div>
                    </div>
                </figcaption>
            </figure>
        </aside>

        {{-- Sign-up form --}}
        <div class="flex items-center justify-center px-4 py-12 sm:px-8">
            <x-ui.card class="w-full max-w-sm border-border shadow-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>
                    <form method="POST" action="{{ $action }}" class="space-y-4">
                        @csrf

                        <x-ui.field>
                            <x-ui.label for="signup-name" required>{{ __('Full name') }}</x-ui.label>
                            <x-ui.input id="signup-name" type="text" name="name" autocomplete="name" required placeholder="{{ __('Jane Doe') }}" />
                        </x-ui.field>

                        <x-ui.field>
                            <x-ui.label for="signup-email" required>{{ __('Email address') }}</x-ui.label>
                            <x-ui.input id="signup-email" type="email" name="email" autocomplete="email" required placeholder="{{ __('you@example.com') }}" />
                        </x-ui.field>

                        <x-ui.field>
                            <x-ui.label for="signup-password" required>{{ __('Password') }}</x-ui.label>
                            <x-ui.input id="signup-password" type="password" name="password" autocomplete="new-password" required />
                        </x-ui.field>

                        <x-ui.button type="submit" class="w-full">{{ __('Create account') }}</x-ui.button>
                    </form>

                    <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') }}</span>
                        <x-ui.separator class="flex-1" />
                    </div>

                    <x-ui.social-button provider="google" type="button" block :label="__('Sign up with Google')" />

                    <p class="mt-6 text-center text-sm text-muted-foreground">
                        {{ __('By signing up, you agree to our') }}
                        <a href="{{ $termsHref }}" class="font-medium text-link hover:underline">{{ __('Terms') }}</a>
                        {{ __('and') }}
                        <a href="{{ $privacyHref }}" class="font-medium text-link hover:underline">{{ __('Privacy Policy') }}</a>.
                    </p>
                </x-ui.card.content>

                <x-ui.card.footer class="justify-center">
                    <p class="text-sm text-muted-foreground">
                        {{ __('Already have an account?') }}
                        <a href="{{ $loginHref }}" class="font-medium text-link hover:underline">{{ __('Sign in') }}</a>
                    </p>
                </x-ui.card.footer>
            </x-ui.card>
        </div>
    </div>
</x-ui.section>

Ownership & lifecycle

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