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

7 of 9

resources/views/blocks/team-carousel.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,
    'loop' => true,
])

@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/',
            ],
        ],
        [
            'name' => 'Sofia Marchetti',
            'role' => 'Product Manager',
            'initials' => 'SM',
            'bio' => 'Keeps the roadmap focused and the feedback loop short so we build what teams actually need.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Devon Hayes',
            'role' => 'Staff Engineer',
            'initials' => 'DH',
            'bio' => 'Sweats the build pipeline and the edge cases so releases stay clean and reversible.',
            '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" />

        <x-ui.carousel :loop="$loop" class="mt-12 px-12 sm:mt-16 sm:px-14" aria-label="{{ __('Team members') }}">
            <x-ui.carousel.content>
                @foreach ($members as $member)
                    <x-ui.carousel.item class="basis-full px-2 sm:basis-1/2 lg:basis-1/3">
                        <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>
                    </x-ui.carousel.item>
                @endforeach
            </x-ui.carousel.content>

            <x-ui.carousel.previous />
            <x-ui.carousel.next />
        </x-ui.carousel>
    </x-ui.container>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/team-carousel

Registry contract

Install confidence

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

Registry dependencies

avatar badge card carousel 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-carousel.md
# Brok UI block: Team 06 (`team-carousel`)

A centered heading and subheading above a carousel of member cards — one slide per member on mobile, peeking multiple on larger screens — each with a large avatar, name, role badge, one-line bio, and aria-labelled social icon buttons, plus keyboard-accessible previous/next controls.

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

## Render it

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

## 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.
- `loop` (bool, default `true`) — Wraps the carousel from the last slide back to the first.

## Use when

- Showing team members in a horizontally scrollable carousel with previous/next controls.
- Fitting a roster that is too large for a static grid on smaller screens.

## Avoid when

- Wanting a static grid instead of a carousel; use team-grid instead.

## Rules

- Render the installed block with `<x-blocks.team-carousel />` 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-carousel
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/team-carousel.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 team members in a horizontally scrollable carousel with previous/next controls.
  • Fitting a roster that is too large for a static grid on smaller screens.

Avoid when

  • Wanting a static grid instead of a carousel; 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-carousel />

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-carousel.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,
    'loop' => true,
])

@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/',
            ],
        ],
        [
            'name' => 'Sofia Marchetti',
            'role' => 'Product Manager',
            'initials' => 'SM',
            'bio' => 'Keeps the roadmap focused and the feedback loop short so we build what teams actually need.',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Devon Hayes',
            'role' => 'Staff Engineer',
            'initials' => 'DH',
            'bio' => 'Sweats the build pipeline and the edge cases so releases stay clean and reversible.',
            '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" />

        <x-ui.carousel :loop="$loop" class="mt-12 px-12 sm:mt-16 sm:px-14" aria-label="{{ __('Team members') }}">
            <x-ui.carousel.content>
                @foreach ($members as $member)
                    <x-ui.carousel.item class="basis-full px-2 sm:basis-1/2 lg:basis-1/3">
                        <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>
                    </x-ui.carousel.item>
                @endforeach
            </x-ui.carousel.content>

            <x-ui.carousel.previous />
            <x-ui.carousel.next />
        </x-ui.carousel>
    </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