Settings
Account settings screens — a grouped account form, a notification-preferences matrix and a connected-apps integrations list.
Preview
@props([
'heading' => 'Integrations',
'subheading' => 'Connect the tools your team already uses.',
'action' => '#',
'integrations' => null,
])
@php
// Neutral, generic glyphs (currentColor only) so the list looks real out of the box.
$integrations ??= [
['name' => 'Slack', 'description' => 'Send alerts and updates to your channels.', 'connected' => true, 'glyph' => 'hash'],
['name' => 'GitHub', 'description' => 'Sync issues and pull-request activity.', 'connected' => true, 'glyph' => 'branch'],
['name' => 'Figma', 'description' => 'Embed live design frames in your docs.', 'connected' => false, 'glyph' => 'shapes'],
['name' => 'Google Drive', 'description' => 'Attach files and folders to records.', 'connected' => true, 'glyph' => 'folder'],
['name' => 'Notion', 'description' => 'Mirror pages and databases two ways.', 'connected' => false, 'glyph' => 'doc'],
['name' => 'Zapier', 'description' => 'Automate workflows across 6,000+ apps.', 'connected' => false, 'glyph' => 'bolt'],
];
@endphp
<x-ui.section
space="lg" {{ $attributes }}
data-slot="settings-03"
aria-labelledby="settings-integrations-01-heading"
>
<div class="mx-auto max-w-3xl px-4">
<x-ui.card>
<x-ui.card.header>
<x-ui.card.title>
<span id="settings-integrations-01-heading">{{ __($heading) }}</span>
</x-ui.card.title>
<x-ui.card.description>{{ __($subheading) }}</x-ui.card.description>
<label for="settings-integrations-01-search" class="sr-only">{{ __('Search integrations') }}</label>
<x-ui.input-group class="mt-4">
<x-ui.input-group.addon><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8" /><path d="m21 21-4.35-4.35" /></svg></x-ui.input-group.addon>
<x-ui.input-group.input
id="settings-integrations-01-search"
type="search"
name="q"
placeholder="{{ __('Search integrations') }}"
autocomplete="off"
/>
</x-ui.input-group>
</x-ui.card.header>
<x-ui.card.content>
<ul role="list" class="-my-2">
@foreach ($integrations as $i => $app)
@if ($i > 0)
<li aria-hidden="true"><x-ui.separator /></li>
@endif
<li class="flex items-center gap-4 py-4">
<span
class="flex size-10 shrink-0 items-center justify-center rounded-md border border-border bg-muted text-foreground"
aria-hidden="true"
>
@switch($app['glyph'])
@case('hash')
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<path d="M4 9h16M4 15h16M10 3 8 21M16 3l-2 18" />
</svg>
@break
@case('branch')
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<circle cx="6" cy="6" r="3" /><circle cx="6" cy="18" r="3" /><circle cx="18" cy="8" r="3" />
<path d="M6 9v6M18 11a6 6 0 0 1-6 6H9" />
</svg>
@break
@case('shapes')
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<circle cx="8" cy="8" r="4" /><rect x="13" y="13" width="7" height="7" rx="1" />
<path d="M13 4h7v7h-7z" />
</svg>
@break
@case('folder')
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<path d="M4 5h5l2 3h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z" />
</svg>
@break
@case('doc')
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<path d="M6 3h8l4 4v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z" />
<path d="M14 3v4h4M9 13h6M9 17h6" />
</svg>
@break
@default
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<path d="M13 2 4 14h7l-2 8 9-12h-7l2-8Z" />
</svg>
@endswitch
</span>
<div class="min-w-0 flex-1">
<div class="flex items-center gap-2">
<p class="truncate font-medium text-foreground">{{ $app['name'] }}</p>
@if ($app['connected'])
<x-ui.badge variant="success" size="sm">{{ __('Connected') }}</x-ui.badge>
@else
<x-ui.badge variant="outline" size="sm">{{ __('Not connected') }}</x-ui.badge>
@endif
</div>
<p class="mt-0.5 truncate text-sm text-muted-foreground">{{ __($app['description']) }}</p>
</div>
<form method="POST" action="{{ $action }}" class="shrink-0">
@csrf
<input type="hidden" name="integration" value="{{ $app['name'] }}" />
@if ($app['connected'])
<input type="hidden" name="action" value="disconnect" />
<x-ui.button type="submit" variant="ghost" size="sm">
{{ __('Disconnect') }}
<span class="sr-only">{{ __('from') }} {{ $app['name'] }}</span>
</x-ui.button>
@else
<input type="hidden" name="action" value="connect" />
<x-ui.button type="submit" variant="outline" size="sm">
{{ __('Connect') }}
<span class="sr-only">{{ $app['name'] }}</span>
</x-ui.button>
@endif
</form>
</li>
@endforeach
</ul>
</x-ui.card.content>
</x-ui.card>
</div>
</x-ui.section>
Installation
php artisan ui:add blocks/settings-integrations
Registry contract
Install confidence
php artisan ui:add blocks/settings-integrations
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/settings-integrations.blade.php |
Registry dependencies
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.
# Brok UI block: Settings Integrations (`settings-integrations`)
A connected-apps settings card with a search header and a list of integration rows, each showing an app glyph, name, description, connection status badge, and a connect/disconnect action.
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/settings-integrations
```
## Render it
```blade
<x-blocks.settings-integrations />
```
## Props
- `heading` (string, default `Integrations`) — Section heading.
- `subheading` (string, default `Connect the tools your team already uses.`) — Supporting copy under the heading.
- `action` (string, default `#`) — Form submission endpoint.
- `integrations` (mixed|null, default `null`) — Integration rows with a name, description, connected state and glyph; null falls back to sample data.
## Use when
- Listing connected third-party apps with a search field and per-row connect/disconnect actions.
- Building a settings screen dedicated to managing integrations rather than profile or notification preferences.
## Avoid when
- Managing profile or notification settings instead of integrations; use settings-account or settings-notifications instead.
## Rules
- Render the installed block with `<x-blocks.settings-integrations />` 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/settings-integrations
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/settings-integrations.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
- Listing connected third-party apps with a search field and per-row connect/disconnect actions.
- Building a settings screen dedicated to managing integrations rather than profile or notification preferences.
Avoid when
- Managing profile or notification settings instead of integrations; use settings-account or settings-notifications instead.
Anti-patterns
- Do not replace semantic props with conflicting utility classes.
- Do not remove labels, focus styles, or state attributes.
- Anatomy
Usage
Render the block as a component, passing data where useful:
<x-blocks.settings-integrations />
Built from primitives
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.
@props([
'heading' => 'Integrations',
'subheading' => 'Connect the tools your team already uses.',
'action' => '#',
'integrations' => null,
])
@php
// Neutral, generic glyphs (currentColor only) so the list looks real out of the box.
$integrations ??= [
['name' => 'Slack', 'description' => 'Send alerts and updates to your channels.', 'connected' => true, 'glyph' => 'hash'],
['name' => 'GitHub', 'description' => 'Sync issues and pull-request activity.', 'connected' => true, 'glyph' => 'branch'],
['name' => 'Figma', 'description' => 'Embed live design frames in your docs.', 'connected' => false, 'glyph' => 'shapes'],
['name' => 'Google Drive', 'description' => 'Attach files and folders to records.', 'connected' => true, 'glyph' => 'folder'],
['name' => 'Notion', 'description' => 'Mirror pages and databases two ways.', 'connected' => false, 'glyph' => 'doc'],
['name' => 'Zapier', 'description' => 'Automate workflows across 6,000+ apps.', 'connected' => false, 'glyph' => 'bolt'],
];
@endphp
<x-ui.section
space="lg" {{ $attributes }}
data-slot="settings-03"
aria-labelledby="settings-integrations-01-heading"
>
<div class="mx-auto max-w-3xl px-4">
<x-ui.card>
<x-ui.card.header>
<x-ui.card.title>
<span id="settings-integrations-01-heading">{{ __($heading) }}</span>
</x-ui.card.title>
<x-ui.card.description>{{ __($subheading) }}</x-ui.card.description>
<label for="settings-integrations-01-search" class="sr-only">{{ __('Search integrations') }}</label>
<x-ui.input-group class="mt-4">
<x-ui.input-group.addon><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8" /><path d="m21 21-4.35-4.35" /></svg></x-ui.input-group.addon>
<x-ui.input-group.input
id="settings-integrations-01-search"
type="search"
name="q"
placeholder="{{ __('Search integrations') }}"
autocomplete="off"
/>
</x-ui.input-group>
</x-ui.card.header>
<x-ui.card.content>
<ul role="list" class="-my-2">
@foreach ($integrations as $i => $app)
@if ($i > 0)
<li aria-hidden="true"><x-ui.separator /></li>
@endif
<li class="flex items-center gap-4 py-4">
<span
class="flex size-10 shrink-0 items-center justify-center rounded-md border border-border bg-muted text-foreground"
aria-hidden="true"
>
@switch($app['glyph'])
@case('hash')
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<path d="M4 9h16M4 15h16M10 3 8 21M16 3l-2 18" />
</svg>
@break
@case('branch')
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<circle cx="6" cy="6" r="3" /><circle cx="6" cy="18" r="3" /><circle cx="18" cy="8" r="3" />
<path d="M6 9v6M18 11a6 6 0 0 1-6 6H9" />
</svg>
@break
@case('shapes')
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<circle cx="8" cy="8" r="4" /><rect x="13" y="13" width="7" height="7" rx="1" />
<path d="M13 4h7v7h-7z" />
</svg>
@break
@case('folder')
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<path d="M4 5h5l2 3h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z" />
</svg>
@break
@case('doc')
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<path d="M6 3h8l4 4v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z" />
<path d="M14 3v4h4M9 13h6M9 17h6" />
</svg>
@break
@default
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-5">
<path d="M13 2 4 14h7l-2 8 9-12h-7l2-8Z" />
</svg>
@endswitch
</span>
<div class="min-w-0 flex-1">
<div class="flex items-center gap-2">
<p class="truncate font-medium text-foreground">{{ $app['name'] }}</p>
@if ($app['connected'])
<x-ui.badge variant="success" size="sm">{{ __('Connected') }}</x-ui.badge>
@else
<x-ui.badge variant="outline" size="sm">{{ __('Not connected') }}</x-ui.badge>
@endif
</div>
<p class="mt-0.5 truncate text-sm text-muted-foreground">{{ __($app['description']) }}</p>
</div>
<form method="POST" action="{{ $action }}" class="shrink-0">
@csrf
<input type="hidden" name="integration" value="{{ $app['name'] }}" />
@if ($app['connected'])
<input type="hidden" name="action" value="disconnect" />
<x-ui.button type="submit" variant="ghost" size="sm">
{{ __('Disconnect') }}
<span class="sr-only">{{ __('from') }} {{ $app['name'] }}</span>
</x-ui.button>
@else
<input type="hidden" name="action" value="connect" />
<x-ui.button type="submit" variant="outline" size="sm">
{{ __('Connect') }}
<span class="sr-only">{{ $app['name'] }}</span>
</x-ui.button>
@endif
</form>
</li>
@endforeach
</ul>
</x-ui.card.content>
</x-ui.card>
</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