Skip to content
Brok UI

Loading…

No results

Team

Open source

Team sections — a card grid, a split-lead layout, list rows, a photo grid, a minimal grid and a carousel.

Preview

3 of 9

resources/views/blocks/team-split-lead.blade.php Blade
@props([
    'eyebrow' => 'Our team',
    'heading' => 'Led by people who ship',
    'subheading' => 'A senior crew with a clear point of view — and a lead who keeps the work honest and the bar high.',
    'lead' => null,
    'members' => null,
])

@php
    $lead ??= [
        'name' => 'Avery Mitchell',
        'role' => 'Co-founder & CEO',
        'initials' => 'AM',
        'bio' => 'Sets product direction and keeps everyone honest about shipping value, not features. Avery started the company after a decade of watching good teams drown in process, and keeps this one small, senior, and fast on purpose.',
        'links' => [
            'linkedin' => 'https://www.linkedin.com/',
            'x' => 'https://x.com/',
            'github' => 'https://github.com/',
        ],
    ];

    $members ??= [
        [
            'name' => 'Jordan Lee',
            'role' => 'Head of Engineering',
            'initials' => 'JL',
            'bio' => 'Owns the architecture and the build pipeline so every release lands clean and reversible.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Priya Nair',
            'role' => 'Lead Designer',
            'initials' => 'PN',
            'bio' => 'Turns the token system into interfaces that feel obvious, accessible, and on-brand.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Marcus Bell',
            'role' => 'Developer Advocate',
            'initials' => 'MB',
            'bio' => 'Writes the docs, runs the demos, and brings real-world feedback back into the roadmap.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Sofia Reyes',
            'role' => 'Product Manager',
            'initials' => 'SR',
            'bio' => 'Keeps the roadmap ruthless and the trade-offs explicit so the team builds the right thing.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
    ];

    // Per-person `links` (network => url) become one social-links row, labelled per person.
    $networkLabels = ['linkedin' => 'LinkedIn', 'x' => 'X', 'github' => 'GitHub'];
    $memberLinks = fn (array $member) => collect($member['links'])
        ->map(fn (string $url, string $network) => [
            'platform' => $network,
            'href' => $url,
            'label' => __(':name on :network', ['name' => $member['name'], 'network' => $networkLabels[$network] ?? ucfirst($network)]),
        ])
        ->values()
        ->all();
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <x-ui.container gutter="sm">
        <div class="mx-auto max-w-2xl text-center">
            @if ($eyebrow)
                <p class="text-sm font-semibold uppercase tracking-wide text-primary">{{ __($eyebrow) }}</p>
            @endif
            <h2 class="mt-4 text-balance text-3xl font-bold tracking-tight sm:text-4xl">{{ __($heading) }}</h2>
            @if ($subheading)
                <p class="mt-4 text-pretty text-base text-muted-foreground">{{ __($subheading) }}</p>
            @endif
        </div>

        <div class="mt-12 grid grid-cols-1 gap-6 sm:mt-16 lg:grid-cols-2">
            <x-ui.card class="flex h-full flex-col items-start gap-6 p-8">
                <x-ui.avatar
                    size="xl"
                    :alt="$lead['name']"
                    :fallback="$lead['initials']"
                    class="size-24 text-3xl ring-2 ring-border ring-offset-2 ring-offset-card"
                />

                <div class="flex flex-col items-start gap-2">
                    <h3 class="text-base font-semibold text-foreground">{{ __($lead['name']) }}</h3>
                    <x-ui.badge variant="secondary">{{ __($lead['role']) }}</x-ui.badge>
                </div>

                @if (! empty($lead['bio']))
                    <p class="text-pretty text-base leading-relaxed text-muted-foreground">{{ __($lead['bio']) }}</p>
                @endif

                @if (! empty($lead['links']))
                    <x-ui.social-links :links="$memberLinks($lead)" size="md" :label="__('Social links of :name', ['name' => $lead['name']])" class="mt-auto pt-2" />
                @endif
            </x-ui.card>

            <ul role="list" class="grid grid-cols-1 gap-6 sm:grid-cols-2">
                @foreach ($members as $member)
                    <li>
                        <x-ui.card class="flex h-full flex-col items-start gap-4 p-6">
                            <div class="flex items-center gap-4">
                                <x-ui.avatar
                                    size="lg"
                                    :alt="$member['name']"
                                    :fallback="$member['initials']"
                                    class="ring-2 ring-border ring-offset-2 ring-offset-card"
                                />
                                <div class="flex flex-col items-start gap-2">
                                    <h3 class="text-base font-semibold text-foreground">{{ __($member['name']) }}</h3>
                                    <x-ui.badge variant="secondary" size="sm">{{ __($member['role']) }}</x-ui.badge>
                                </div>
                            </div>

                            @if (! empty($member['bio']))
                                <p class="text-pretty text-sm leading-relaxed text-muted-foreground">{{ __($member['bio']) }}</p>
                            @endif

                            @if (! empty($member['links']))
                                <x-ui.social-links :links="$memberLinks($member)" size="md" :label="__('Social links of :name', ['name' => $member['name']])" class="mt-auto pt-2" />
                            @endif
                        </x-ui.card>
                    </li>
                @endforeach
            </ul>
        </div>
    </x-ui.container>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/team-split-lead

Installs these dependencies automatically:

Registry contract

Install confidence

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

Registry dependencies

avatar badge card container section social-links

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.

team-split-lead.md
# Brok UI block: Team 02 (`team-split-lead`)

A featured lead member presented large in a prominent card on the start side — big avatar, name, role badge, longer bio, and social buttons — beside a 2-column grid of the remaining members as compact cards; stacks on mobile, splits lead | grid on large screens.

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/team-split-lead
```

## Render it

```blade
<x-blocks.team-split-lead />
```

## Props

- `eyebrow` (string, default `Our team`) — Small label shown above the heading.
- `heading` (string, default `Led by people who ship`) — Section heading.
- `subheading` (string, default `A senior crew with a clear point of view — and a lead who keeps the work honest and the bar high.`) — Supporting copy under the heading.
- `lead` (mixed|null, default `null`) — Featured lead member with name, role, initials, bio and social links; null falls back to sample data.
- `members` (mixed|null, default `null`) — Remaining team member entries; null falls back to sample data.

## Use when

- Highlighting one lead member in a large featured card beside a grid of the rest of the team.
- Giving leadership visual emphasis over the rest of the roster.

## Avoid when

- Presenting all members with equal visual weight; use team-grid instead.

## Rules

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

  • Highlighting one lead member in a large featured card beside a grid of the rest of the team.
  • Giving leadership visual emphasis over the rest of the roster.

Avoid when

  • Presenting all members with equal visual weight; use team-grid instead.

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.team-split-lead />

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/team-split-lead.blade.php Blade
@props([
    'eyebrow' => 'Our team',
    'heading' => 'Led by people who ship',
    'subheading' => 'A senior crew with a clear point of view — and a lead who keeps the work honest and the bar high.',
    'lead' => null,
    'members' => null,
])

@php
    $lead ??= [
        'name' => 'Avery Mitchell',
        'role' => 'Co-founder & CEO',
        'initials' => 'AM',
        'bio' => 'Sets product direction and keeps everyone honest about shipping value, not features. Avery started the company after a decade of watching good teams drown in process, and keeps this one small, senior, and fast on purpose.',
        'links' => [
            'linkedin' => 'https://www.linkedin.com/',
            'x' => 'https://x.com/',
            'github' => 'https://github.com/',
        ],
    ];

    $members ??= [
        [
            'name' => 'Jordan Lee',
            'role' => 'Head of Engineering',
            'initials' => 'JL',
            'bio' => 'Owns the architecture and the build pipeline so every release lands clean and reversible.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Priya Nair',
            'role' => 'Lead Designer',
            'initials' => 'PN',
            'bio' => 'Turns the token system into interfaces that feel obvious, accessible, and on-brand.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Marcus Bell',
            'role' => 'Developer Advocate',
            'initials' => 'MB',
            'bio' => 'Writes the docs, runs the demos, and brings real-world feedback back into the roadmap.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Sofia Reyes',
            'role' => 'Product Manager',
            'initials' => 'SR',
            'bio' => 'Keeps the roadmap ruthless and the trade-offs explicit so the team builds the right thing.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
    ];

    // Per-person `links` (network => url) become one social-links row, labelled per person.
    $networkLabels = ['linkedin' => 'LinkedIn', 'x' => 'X', 'github' => 'GitHub'];
    $memberLinks = fn (array $member) => collect($member['links'])
        ->map(fn (string $url, string $network) => [
            'platform' => $network,
            'href' => $url,
            'label' => __(':name on :network', ['name' => $member['name'], 'network' => $networkLabels[$network] ?? ucfirst($network)]),
        ])
        ->values()
        ->all();
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <x-ui.container gutter="sm">
        <div class="mx-auto max-w-2xl text-center">
            @if ($eyebrow)
                <p class="text-sm font-semibold uppercase tracking-wide text-primary">{{ __($eyebrow) }}</p>
            @endif
            <h2 class="mt-4 text-balance text-3xl font-bold tracking-tight sm:text-4xl">{{ __($heading) }}</h2>
            @if ($subheading)
                <p class="mt-4 text-pretty text-base text-muted-foreground">{{ __($subheading) }}</p>
            @endif
        </div>

        <div class="mt-12 grid grid-cols-1 gap-6 sm:mt-16 lg:grid-cols-2">
            <x-ui.card class="flex h-full flex-col items-start gap-6 p-8">
                <x-ui.avatar
                    size="xl"
                    :alt="$lead['name']"
                    :fallback="$lead['initials']"
                    class="size-24 text-3xl ring-2 ring-border ring-offset-2 ring-offset-card"
                />

                <div class="flex flex-col items-start gap-2">
                    <h3 class="text-base font-semibold text-foreground">{{ __($lead['name']) }}</h3>
                    <x-ui.badge variant="secondary">{{ __($lead['role']) }}</x-ui.badge>
                </div>

                @if (! empty($lead['bio']))
                    <p class="text-pretty text-base leading-relaxed text-muted-foreground">{{ __($lead['bio']) }}</p>
                @endif

                @if (! empty($lead['links']))
                    <x-ui.social-links :links="$memberLinks($lead)" size="md" :label="__('Social links of :name', ['name' => $lead['name']])" class="mt-auto pt-2" />
                @endif
            </x-ui.card>

            <ul role="list" class="grid grid-cols-1 gap-6 sm:grid-cols-2">
                @foreach ($members as $member)
                    <li>
                        <x-ui.card class="flex h-full flex-col items-start gap-4 p-6">
                            <div class="flex items-center gap-4">
                                <x-ui.avatar
                                    size="lg"
                                    :alt="$member['name']"
                                    :fallback="$member['initials']"
                                    class="ring-2 ring-border ring-offset-2 ring-offset-card"
                                />
                                <div class="flex flex-col items-start gap-2">
                                    <h3 class="text-base font-semibold text-foreground">{{ __($member['name']) }}</h3>
                                    <x-ui.badge variant="secondary" size="sm">{{ __($member['role']) }}</x-ui.badge>
                                </div>
                            </div>

                            @if (! empty($member['bio']))
                                <p class="text-pretty text-sm leading-relaxed text-muted-foreground">{{ __($member['bio']) }}</p>
                            @endif

                            @if (! empty($member['links']))
                                <x-ui.social-links :links="$memberLinks($member)" size="md" :label="__('Social links of :name', ['name' => $member['name']])" class="mt-auto pt-2" />
                            @endif
                        </x-ui.card>
                    </li>
                @endforeach
            </ul>
        </div>
    </x-ui.container>
</x-ui.section>

Ownership & lifecycle

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