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

1 of 9

resources/views/blocks/team-grid.blade.php Blade
@props([
    'eyebrow' => 'Our team',
    'heading' => 'Meet the people behind the product',
    'subheading' => 'A small, senior team that ships fast and sweats the details — from design tokens to keyboard focus states.',
    'members' => null,
])

@php
    $members ??= [
        [
            'name' => 'Avery Mitchell',
            'role' => 'Co-founder & CEO',
            'initials' => 'AM',
            'bio' => 'Sets product direction and keeps everyone honest about shipping value, not features.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            '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/',
            ],
        ],
    ];

    // 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">
        <x-ui.section-heading align="center" overline-style="label" :overline="$eyebrow" :title="$heading" :subtitle="$subheading" />

        <ul role="list" class="mt-12 grid grid-cols-1 gap-6 sm:mt-16 sm:grid-cols-2 lg:grid-cols-4">
            @foreach ($members as $member)
                <li>
                    <x-ui.card class="flex h-full flex-col items-center gap-4 p-6 text-center transition-shadow hover:shadow-md">
                        <x-ui.avatar
                            size="xl"
                            :alt="$member['name']"
                            :fallback="$member['initials']"
                            class="ring-2 ring-border ring-offset-2 ring-offset-card"
                        />

                        <div class="flex flex-col items-center gap-2">
                            <h3 class="text-sm font-semibold text-foreground">{{ __($member['name']) }}</h3>
                            <x-ui.badge variant="secondary" size="sm">{{ __($member['role']) }}</x-ui.badge>
                        </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 justify-center pt-2" />
                        @endif
                    </x-ui.card>
                </li>
            @endforeach
        </ul>
    </x-ui.container>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/team-grid

Registry contract

Install confidence

php artisan ui:add blocks/team-grid 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-grid.blade.php

Registry dependencies

avatar badge card container section section-heading 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-grid.md
# Brok UI block: Team (`team-grid`)

A centered heading and subheading above a responsive 2-to-4-column grid of member cards, each with a large avatar, name, role badge, one-line bio, and a row of aria-labelled social icon buttons.

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

## Render it

```blade
<x-blocks.team-grid />
```

## Props

- `eyebrow` (string, default `Our team`) — Small label shown above the heading.
- `heading` (string, default `Meet the people behind the product`) — Section heading.
- `subheading` (string, default `A small, senior team that ships fast and sweats the details — from design tokens to keyboard focus states.`) — Supporting copy under the heading.
- `members` (mixed|null, default `null`) — Team member entries with name, role, initials, bio and social links; null falls back to sample data.

## Use when

- Showing a straightforward grid of team member cards with avatar, role and bio.
- Using it as the default team section when filtering, carousels or department grouping are not needed.

## Avoid when

- Needing department filtering; use team-filterable instead. Needing a department-grouped layout; use team-departments instead.

## Rules

- Render the installed block with `<x-blocks.team-grid />` 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-grid
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/team-grid.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 straightforward grid of team member cards with avatar, role and bio.
  • Using it as the default team section when filtering, carousels or department grouping are not needed.

Avoid when

  • Needing department filtering; use team-filterable instead. Needing a department-grouped layout; use team-departments 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-grid />

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-grid.blade.php Blade
@props([
    'eyebrow' => 'Our team',
    'heading' => 'Meet the people behind the product',
    'subheading' => 'A small, senior team that ships fast and sweats the details — from design tokens to keyboard focus states.',
    'members' => null,
])

@php
    $members ??= [
        [
            'name' => 'Avery Mitchell',
            'role' => 'Co-founder & CEO',
            'initials' => 'AM',
            'bio' => 'Sets product direction and keeps everyone honest about shipping value, not features.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            '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/',
            ],
        ],
    ];

    // 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">
        <x-ui.section-heading align="center" overline-style="label" :overline="$eyebrow" :title="$heading" :subtitle="$subheading" />

        <ul role="list" class="mt-12 grid grid-cols-1 gap-6 sm:mt-16 sm:grid-cols-2 lg:grid-cols-4">
            @foreach ($members as $member)
                <li>
                    <x-ui.card class="flex h-full flex-col items-center gap-4 p-6 text-center transition-shadow hover:shadow-md">
                        <x-ui.avatar
                            size="xl"
                            :alt="$member['name']"
                            :fallback="$member['initials']"
                            class="ring-2 ring-border ring-offset-2 ring-offset-card"
                        />

                        <div class="flex flex-col items-center gap-2">
                            <h3 class="text-sm font-semibold text-foreground">{{ __($member['name']) }}</h3>
                            <x-ui.badge variant="secondary" size="sm">{{ __($member['role']) }}</x-ui.badge>
                        </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 justify-center pt-2" />
                        @endif
                    </x-ui.card>
                </li>
            @endforeach
        </ul>
    </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