Skip to content
Brok UI

Loading…

No results

Integrations

Open source

Integration sections — a card grid, a split layout, a marquee and an orbit diagram.

Preview

2 of 5

resources/views/blocks/integrations-split.blade.php Blade
@props([
    'eyebrow' => 'Integrations',
    'heading' => 'Connect the tools your team already uses',
    'subheading' => 'Sync data both ways, automate the busywork, and keep every system in lockstep. Set up a new integration in minutes — no glue code, no maintenance.',
    'primaryCta' => 'Browse integrations',
    'primaryHref' => '#',
    'logos' => null,
])

@php
    $logos ??= [
        ['name' => 'Northwind', 'initials' => 'NW'],
        ['name' => 'Stackline', 'initials' => 'SL'],
        ['name' => 'Cobalt', 'initials' => 'CB'],
        ['name' => 'Quanta', 'initials' => 'QA'],
        ['name' => 'Ledgerly', 'initials' => 'LD'],
        ['name' => 'Pulsewave', 'initials' => 'PW'],
    ];
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <div class="mx-auto grid max-w-6xl items-center gap-12 px-4 lg:grid-cols-2 lg:gap-16">
        {{-- Left: copy + CTA --}}
        <div class="max-w-xl text-start">
            @if ($eyebrow)
                <x-ui.badge variant="secondary" class="mb-6">{{ __($eyebrow) }}</x-ui.badge>
            @endif

            <h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">
                {{ __($heading) }}
            </h2>

            <p class="mt-6 text-pretty text-lg text-muted-foreground">
                {{ __($subheading) }}
            </p>

            <div class="mt-8">
                <x-ui.button :href="$primaryHref" size="lg" class="w-full sm:w-auto inline-block">{{ __($primaryCta) }}</x-ui.button>
            </div>
        </div>

        {{-- Right: tidy grid of logo tiles on a soft gradient panel --}}
        <div class="relative rounded-lg border border-border bg-gradient-to-br from-primary/[0.07] via-card to-card p-6 shadow-sm sm:p-8">
            <ul role="list" class="grid grid-cols-2 gap-4 sm:grid-cols-3 sm:gap-6">
                @foreach ($logos as $logo)
                    <li>
                        <div class="flex h-full flex-col items-center justify-center gap-4 rounded-lg border border-border bg-background p-6 text-center shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:border-primary/40 hover:shadow-md">
                            <span
                                class="flex size-11 items-center justify-center rounded-md bg-primary/10 text-sm font-semibold tracking-tight text-primary"
                                aria-hidden="true"
                            >{{ $logo['initials'] }}</span>
                            <span class="text-sm font-medium text-foreground">{{ __($logo['name']) }}</span>
                        </div>
                    </li>
                @endforeach
            </ul>
        </div>
    </div>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/integrations-split

Installs these dependencies automatically:

Registry contract

Install confidence

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

Registry dependencies

badge button section

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.

integrations-split.md
# Brok UI block: Integrations Split (`integrations-split`)

Two-column integrations section with eyebrow, heading, body and CTA on the left and a scattered cluster of rounded logo tiles on the right.

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/integrations-split
```

## Render it

```blade
<x-blocks.integrations-split />
```

## Props

- `eyebrow` (string, default `Integrations`) — Small label shown above the heading inside a badge.
- `heading` (string, default `Connect the tools your team already uses`) — Primary section heading.
- `subheading` (string, default `Sync data both ways, automate the busywork, and keep every system in lockstep. Set up a new integration in minutes — no glue code, no maintenance.`) — Supporting paragraph under the heading.
- `primary-cta` (string, default `Browse integrations`) — Primary button label.
- `primary-href` (string, default `#`) — Primary button destination.
- `logos` (mixed|null, default `null`) — Array of {name, initials} tiles; falls back to a 6-item sample logo list when null.

## Use when

- Use it for a two-column integrations pitch: copy and a single CTA on one side, a tidy grid of rounded logo tiles on a soft gradient panel on the other.
- Reach for it when the goal is a persuasive lead-in with one primary action, not a browsable grid of individually connectable cards.

## Avoid when

- Avoid it when each integration needs its own description and Connect/Installed state; use integrations-grid instead.

## Rules

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

  • Use it for a two-column integrations pitch: copy and a single CTA on one side, a tidy grid of rounded logo tiles on a soft gradient panel on the other.
  • Reach for it when the goal is a persuasive lead-in with one primary action, not a browsable grid of individually connectable cards.

Avoid when

  • Avoid it when each integration needs its own description and Connect/Installed state; use integrations-grid instead.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.
Anatomy
eyebrow badge heading subheading primary CTA button gradient panel logo tile grid

Usage

Render the block as a component, passing data where useful:

resources/views/welcome.blade.php Blade
<x-blocks.integrations-split />

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/integrations-split.blade.php Blade
@props([
    'eyebrow' => 'Integrations',
    'heading' => 'Connect the tools your team already uses',
    'subheading' => 'Sync data both ways, automate the busywork, and keep every system in lockstep. Set up a new integration in minutes — no glue code, no maintenance.',
    'primaryCta' => 'Browse integrations',
    'primaryHref' => '#',
    'logos' => null,
])

@php
    $logos ??= [
        ['name' => 'Northwind', 'initials' => 'NW'],
        ['name' => 'Stackline', 'initials' => 'SL'],
        ['name' => 'Cobalt', 'initials' => 'CB'],
        ['name' => 'Quanta', 'initials' => 'QA'],
        ['name' => 'Ledgerly', 'initials' => 'LD'],
        ['name' => 'Pulsewave', 'initials' => 'PW'],
    ];
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <div class="mx-auto grid max-w-6xl items-center gap-12 px-4 lg:grid-cols-2 lg:gap-16">
        {{-- Left: copy + CTA --}}
        <div class="max-w-xl text-start">
            @if ($eyebrow)
                <x-ui.badge variant="secondary" class="mb-6">{{ __($eyebrow) }}</x-ui.badge>
            @endif

            <h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">
                {{ __($heading) }}
            </h2>

            <p class="mt-6 text-pretty text-lg text-muted-foreground">
                {{ __($subheading) }}
            </p>

            <div class="mt-8">
                <x-ui.button :href="$primaryHref" size="lg" class="w-full sm:w-auto inline-block">{{ __($primaryCta) }}</x-ui.button>
            </div>
        </div>

        {{-- Right: tidy grid of logo tiles on a soft gradient panel --}}
        <div class="relative rounded-lg border border-border bg-gradient-to-br from-primary/[0.07] via-card to-card p-6 shadow-sm sm:p-8">
            <ul role="list" class="grid grid-cols-2 gap-4 sm:grid-cols-3 sm:gap-6">
                @foreach ($logos as $logo)
                    <li>
                        <div class="flex h-full flex-col items-center justify-center gap-4 rounded-lg border border-border bg-background p-6 text-center shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:border-primary/40 hover:shadow-md">
                            <span
                                class="flex size-11 items-center justify-center rounded-md bg-primary/10 text-sm font-semibold tracking-tight text-primary"
                                aria-hidden="true"
                            >{{ $logo['initials'] }}</span>
                            <span class="text-sm font-medium text-foreground">{{ __($logo['name']) }}</span>
                        </div>
                    </li>
                @endforeach
            </ul>
        </div>
    </div>
</x-ui.section>

Ownership & lifecycle

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