Features
Feature sections — icon grids, bordered cards, alternating media rows, bento layouts, a services variant and an industries grid.
Preview
@props([
'heading' => 'Built to fit the way you work',
'subheading' => 'A closer look at the features teams reach for every day.',
'features' => null,
])
@php
$features ??= [
[
'eyebrow' => 'Workflow',
'title' => 'Automate the busywork',
'body' => 'Turn repetitive multi-step tasks into a single click. Define a flow once and let it run on schedule or on demand, with a full audit trail.',
'bullets' => ['Visual flow builder', 'Conditional branching', 'Scheduled & on-demand runs'],
'cta' => 'Explore automations',
'href' => '#',
],
[
'eyebrow' => 'Insights',
'title' => 'Decisions backed by data',
'body' => 'Real-time dashboards surface the metrics that matter, so your team spends less time pulling reports and more time acting on them.',
'bullets' => ['Live metric tiles', 'Custom segments', 'Exportable reports'],
'cta' => 'See analytics',
'href' => '#',
],
];
@endphp
<x-ui.section space="xl" {{ $attributes }}>
<x-ui.container gutter="sm">
<div class="mx-auto max-w-2xl text-center">
<h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">{{ __($heading) }}</h2>
<p class="mt-4 text-pretty text-sm text-muted-foreground">{{ __($subheading) }}</p>
</div>
<div class="mt-16 space-y-16 sm:mt-20 sm:space-y-24">
@foreach ($features as $i => $feature)
@php $reverse = $i % 2 === 1; @endphp
<div class="grid grid-cols-1 items-center gap-10 lg:grid-cols-2 lg:gap-16">
<div class="{{ $reverse ? 'lg:order-2' : '' }}">
@if (! empty($feature['eyebrow']))
<x-ui.badge variant="secondary" class="mb-6">{{ __($feature['eyebrow']) }}</x-ui.badge>
@endif
<h3 class="text-balance text-2xl font-semibold tracking-tight sm:text-3xl">
{{ __($feature['title']) }}
</h3>
<p class="mt-4 text-pretty text-sm text-muted-foreground">
{{ __($feature['body']) }}
</p>
@if (! empty($feature['bullets']))
<x-ui.check-list marker="chip" class="mt-6">
@foreach ($feature['bullets'] as $bullet)
<x-ui.check-list.item>{{ __($bullet) }}</x-ui.check-list.item>
@endforeach
</x-ui.check-list>
@endif
@if (! empty($feature['cta']))
<x-ui.button :href="$feature['href'] ?? '#'" variant="outline" class="mt-8 inline-block">
{{ __($feature['cta']) }}
<svg class="ms-2 h-4 w-4 rtl:-scale-x-100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 12h14" />
<path d="m12 5 7 7-7 7" />
</svg>
</x-ui.button>
@endif
</div>
<div class="{{ $reverse ? 'lg:order-1' : '' }}">
<x-ui.card class="overflow-hidden border-border p-2 shadow-sm">
<x-ui.aspect-ratio ratio="16 / 10" class="rounded-lg border border-border bg-gradient-to-br from-primary/10 via-muted to-background">
<div class="absolute inset-0 flex flex-col gap-4 p-6">
<div class="flex items-center gap-2">
<span class="h-2 w-2 rounded-full bg-primary/40" aria-hidden="true"></span>
<span class="h-2 w-2 rounded-full bg-muted-foreground/30" aria-hidden="true"></span>
<span class="h-2 w-2 rounded-full bg-muted-foreground/30" aria-hidden="true"></span>
<span class="ms-auto h-2 w-20 rounded-full bg-muted-foreground/20" aria-hidden="true"></span>
</div>
<div class="grid flex-1 grid-cols-3 gap-4">
<div class="col-span-1 space-y-2 rounded-md border border-border bg-card/70 p-4">
<div class="h-2 w-full rounded-full bg-muted-foreground/20" aria-hidden="true"></div>
<div class="h-2 w-3/4 rounded-full bg-muted-foreground/15" aria-hidden="true"></div>
<div class="h-2 w-1/2 rounded-full bg-primary/30" aria-hidden="true"></div>
<div class="h-2 w-2/3 rounded-full bg-muted-foreground/15" aria-hidden="true"></div>
</div>
<div class="col-span-2 flex flex-col gap-4">
<div class="flex items-end gap-2 rounded-md border border-border bg-card/70 p-4">
<div class="h-10 w-full rounded-sm bg-muted-foreground/15" aria-hidden="true"></div>
<div class="h-16 w-full rounded-sm bg-primary/30" aria-hidden="true"></div>
<div class="h-8 w-full rounded-sm bg-muted-foreground/15" aria-hidden="true"></div>
<div class="h-14 w-full rounded-sm bg-primary/20" aria-hidden="true"></div>
</div>
<div class="flex-1 rounded-md border border-border bg-card/70 p-4">
<div class="h-2 w-1/3 rounded-full bg-muted-foreground/20" aria-hidden="true"></div>
<div class="mt-2 h-2 w-full rounded-full bg-muted-foreground/15" aria-hidden="true"></div>
</div>
</div>
</div>
</div>
</x-ui.aspect-ratio>
</x-ui.card>
</div>
</div>
@endforeach
</div>
</x-ui.container>
</x-ui.section>
Installation
php artisan ui:add blocks/features-alternating
Registry contract
Install confidence
php artisan ui:add blocks/features-alternating
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.6
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/features-alternating.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: Features Alternating (`features-alternating`)
Alternating feature rows pairing an eyebrow, heading, muted copy, check-icon checklist and button with a token-gradient faux-UI media panel that reverses side on each row.
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/features-alternating
```
## Render it
```blade
<x-blocks.features-alternating />
```
## Props
- `heading` (string, default `Built to fit the way you work`)
- `subheading` (string, default `A closer look at the features teams reach for every day.`)
- `features` (mixed|null, default `null`)
## Use when
- Alternating feature rows that pair an eyebrow, heading, checklist and button with a media panel reversing side each row.
- Fitting a longer feature story that benefits from a zigzag, media-rich layout rather than a uniform grid.
## Avoid when
- Use features-grid, -02 or -03 for a uniform grid instead of alternating media rows.
## Rules
- Render the installed block with `<x-blocks.features-alternating />` 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/features-alternating
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/features-alternating.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
- Alternating feature rows that pair an eyebrow, heading, checklist and button with a media panel reversing side each row.
- Fitting a longer feature story that benefits from a zigzag, media-rich layout rather than a uniform grid.
Avoid when
- Use features-grid, -02 or -03 for a uniform grid instead of alternating media rows.
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:
<x-blocks.features-alternating />
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' => 'Built to fit the way you work',
'subheading' => 'A closer look at the features teams reach for every day.',
'features' => null,
])
@php
$features ??= [
[
'eyebrow' => 'Workflow',
'title' => 'Automate the busywork',
'body' => 'Turn repetitive multi-step tasks into a single click. Define a flow once and let it run on schedule or on demand, with a full audit trail.',
'bullets' => ['Visual flow builder', 'Conditional branching', 'Scheduled & on-demand runs'],
'cta' => 'Explore automations',
'href' => '#',
],
[
'eyebrow' => 'Insights',
'title' => 'Decisions backed by data',
'body' => 'Real-time dashboards surface the metrics that matter, so your team spends less time pulling reports and more time acting on them.',
'bullets' => ['Live metric tiles', 'Custom segments', 'Exportable reports'],
'cta' => 'See analytics',
'href' => '#',
],
];
@endphp
<x-ui.section space="xl" {{ $attributes }}>
<x-ui.container gutter="sm">
<div class="mx-auto max-w-2xl text-center">
<h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">{{ __($heading) }}</h2>
<p class="mt-4 text-pretty text-sm text-muted-foreground">{{ __($subheading) }}</p>
</div>
<div class="mt-16 space-y-16 sm:mt-20 sm:space-y-24">
@foreach ($features as $i => $feature)
@php $reverse = $i % 2 === 1; @endphp
<div class="grid grid-cols-1 items-center gap-10 lg:grid-cols-2 lg:gap-16">
<div class="{{ $reverse ? 'lg:order-2' : '' }}">
@if (! empty($feature['eyebrow']))
<x-ui.badge variant="secondary" class="mb-6">{{ __($feature['eyebrow']) }}</x-ui.badge>
@endif
<h3 class="text-balance text-2xl font-semibold tracking-tight sm:text-3xl">
{{ __($feature['title']) }}
</h3>
<p class="mt-4 text-pretty text-sm text-muted-foreground">
{{ __($feature['body']) }}
</p>
@if (! empty($feature['bullets']))
<x-ui.check-list marker="chip" class="mt-6">
@foreach ($feature['bullets'] as $bullet)
<x-ui.check-list.item>{{ __($bullet) }}</x-ui.check-list.item>
@endforeach
</x-ui.check-list>
@endif
@if (! empty($feature['cta']))
<x-ui.button :href="$feature['href'] ?? '#'" variant="outline" class="mt-8 inline-block">
{{ __($feature['cta']) }}
<svg class="ms-2 h-4 w-4 rtl:-scale-x-100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 12h14" />
<path d="m12 5 7 7-7 7" />
</svg>
</x-ui.button>
@endif
</div>
<div class="{{ $reverse ? 'lg:order-1' : '' }}">
<x-ui.card class="overflow-hidden border-border p-2 shadow-sm">
<x-ui.aspect-ratio ratio="16 / 10" class="rounded-lg border border-border bg-gradient-to-br from-primary/10 via-muted to-background">
<div class="absolute inset-0 flex flex-col gap-4 p-6">
<div class="flex items-center gap-2">
<span class="h-2 w-2 rounded-full bg-primary/40" aria-hidden="true"></span>
<span class="h-2 w-2 rounded-full bg-muted-foreground/30" aria-hidden="true"></span>
<span class="h-2 w-2 rounded-full bg-muted-foreground/30" aria-hidden="true"></span>
<span class="ms-auto h-2 w-20 rounded-full bg-muted-foreground/20" aria-hidden="true"></span>
</div>
<div class="grid flex-1 grid-cols-3 gap-4">
<div class="col-span-1 space-y-2 rounded-md border border-border bg-card/70 p-4">
<div class="h-2 w-full rounded-full bg-muted-foreground/20" aria-hidden="true"></div>
<div class="h-2 w-3/4 rounded-full bg-muted-foreground/15" aria-hidden="true"></div>
<div class="h-2 w-1/2 rounded-full bg-primary/30" aria-hidden="true"></div>
<div class="h-2 w-2/3 rounded-full bg-muted-foreground/15" aria-hidden="true"></div>
</div>
<div class="col-span-2 flex flex-col gap-4">
<div class="flex items-end gap-2 rounded-md border border-border bg-card/70 p-4">
<div class="h-10 w-full rounded-sm bg-muted-foreground/15" aria-hidden="true"></div>
<div class="h-16 w-full rounded-sm bg-primary/30" aria-hidden="true"></div>
<div class="h-8 w-full rounded-sm bg-muted-foreground/15" aria-hidden="true"></div>
<div class="h-14 w-full rounded-sm bg-primary/20" aria-hidden="true"></div>
</div>
<div class="flex-1 rounded-md border border-border bg-card/70 p-4">
<div class="h-2 w-1/3 rounded-full bg-muted-foreground/20" aria-hidden="true"></div>
<div class="mt-2 h-2 w-full rounded-full bg-muted-foreground/15" aria-hidden="true"></div>
</div>
</div>
</div>
</div>
</x-ui.aspect-ratio>
</x-ui.card>
</div>
</div>
@endforeach
</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.0.6 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0