Features
Feature sections — icon grids, bordered cards, alternating media rows, bento layouts, a services variant and an industries grid.
Preview
@props([
'eyebrow' => 'Features',
'heading' => 'Everything you need to ship faster',
'subheading' => 'A complete toolkit of composable primitives and blocks, built on design tokens you fully control.',
'features' => null,
])
@php
$features ??= [
[
'icon' => 'M13 10V3L4 14h7v7l9-11h-7z',
'title' => 'Lightning fast',
'description' => 'Static Blade renders instantly with zero runtime overhead and no client-side hydration cost.',
],
[
'icon' => 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z',
'title' => 'Accessible by default',
'description' => 'Every primitive targets WCAG 2.2 AA with keyboard support, focus states, and ARIA wiring built in.',
],
[
'icon' => 'M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01',
'title' => 'Token themeable',
'description' => 'Re-theme light, dark, and per-surface variants by editing CSS variables — never the components.',
],
[
'icon' => 'M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z',
'title' => 'Secure by design',
'description' => 'Auto-escaped output, CSRF-ready forms, and zero external calls keep your surface area small.',
],
[
'icon' => 'M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z',
'title' => 'Own your source',
'description' => 'Code is copied into your project as plain Blade. No lock-in, no black boxes — edit anything.',
],
[
'icon' => 'M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15',
'title' => 'Safe updates',
'description' => 'Pull upstream changes with a reviewable diff. Edited files are never silently overwritten.',
],
];
@endphp
<x-ui.section space="xl" {{ $attributes }}>
<x-ui.container gutter="sm">
<div class="mx-auto max-w-2xl text-center">
@if ($eyebrow)
<x-ui.badge variant="secondary" class="mb-4">{{ __($eyebrow) }}</x-ui.badge>
@endif
<h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">
{{ __($heading) }}
</h2>
@if ($subheading)
<p class="mx-auto mt-4 max-w-xl text-pretty text-lg text-muted-foreground">
{{ __($subheading) }}
</p>
@endif
</div>
<x-ui.separator class="mx-auto mt-12 max-w-6xl" />
<div class="mt-12 grid grid-cols-1 gap-x-8 gap-y-12 sm:grid-cols-2 lg:grid-cols-3">
@foreach ($features as $feature)
<div class="flex flex-col items-start text-start">
<div class="flex size-12 items-center justify-center rounded-md bg-primary/10 text-primary">
<svg class="size-6" fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="{{ $feature['icon'] }}" />
</svg>
</div>
<h3 class="mt-6 text-lg font-semibold tracking-tight">
{{ __($feature['title']) }}
</h3>
<p class="mt-2 text-pretty text-sm text-muted-foreground">
{{ __($feature['description']) }}
</p>
</div>
@endforeach
</div>
</x-ui.container>
</x-ui.section>
Installation
php artisan ui:add blocks/features-grid
Registry contract
Install confidence
php artisan ui:add blocks/features-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.0.4
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/features-grid.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 Grid (`features-grid`)
A centered eyebrow, heading, and intro above a responsive three-column grid of token icon-tile feature items separated by a structural divider.
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-grid
```
## Render it
```blade
<x-blocks.features-grid />
```
## Props
- `eyebrow` (string, default `Features`)
- `heading` (string, default `Everything you need to ship faster`)
- `subheading` (string, default `A complete toolkit of composable primitives and blocks, built on design tokens you fully control.`)
- `features` (mixed|null, default `null`)
## Use when
- Listing product features as a centred heading above a responsive three-column grid of icon-tile items.
- Separating each feature item with a structural divider rather than individual cards.
## Avoid when
- Use features-cards for card-wrapped features with a Learn more link, or features-centered for a fully centred layout.
## Rules
- Render the installed block with `<x-blocks.features-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/features-grid
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/features-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
- Listing product features as a centred heading above a responsive three-column grid of icon-tile items.
- Separating each feature item with a structural divider rather than individual cards.
Avoid when
- Use features-cards for card-wrapped features with a Learn more link, or features-centered for a fully centred layout.
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-grid />
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([
'eyebrow' => 'Features',
'heading' => 'Everything you need to ship faster',
'subheading' => 'A complete toolkit of composable primitives and blocks, built on design tokens you fully control.',
'features' => null,
])
@php
$features ??= [
[
'icon' => 'M13 10V3L4 14h7v7l9-11h-7z',
'title' => 'Lightning fast',
'description' => 'Static Blade renders instantly with zero runtime overhead and no client-side hydration cost.',
],
[
'icon' => 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z',
'title' => 'Accessible by default',
'description' => 'Every primitive targets WCAG 2.2 AA with keyboard support, focus states, and ARIA wiring built in.',
],
[
'icon' => 'M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01',
'title' => 'Token themeable',
'description' => 'Re-theme light, dark, and per-surface variants by editing CSS variables — never the components.',
],
[
'icon' => 'M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z',
'title' => 'Secure by design',
'description' => 'Auto-escaped output, CSRF-ready forms, and zero external calls keep your surface area small.',
],
[
'icon' => 'M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z',
'title' => 'Own your source',
'description' => 'Code is copied into your project as plain Blade. No lock-in, no black boxes — edit anything.',
],
[
'icon' => 'M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15',
'title' => 'Safe updates',
'description' => 'Pull upstream changes with a reviewable diff. Edited files are never silently overwritten.',
],
];
@endphp
<x-ui.section space="xl" {{ $attributes }}>
<x-ui.container gutter="sm">
<div class="mx-auto max-w-2xl text-center">
@if ($eyebrow)
<x-ui.badge variant="secondary" class="mb-4">{{ __($eyebrow) }}</x-ui.badge>
@endif
<h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">
{{ __($heading) }}
</h2>
@if ($subheading)
<p class="mx-auto mt-4 max-w-xl text-pretty text-lg text-muted-foreground">
{{ __($subheading) }}
</p>
@endif
</div>
<x-ui.separator class="mx-auto mt-12 max-w-6xl" />
<div class="mt-12 grid grid-cols-1 gap-x-8 gap-y-12 sm:grid-cols-2 lg:grid-cols-3">
@foreach ($features as $feature)
<div class="flex flex-col items-start text-start">
<div class="flex size-12 items-center justify-center rounded-md bg-primary/10 text-primary">
<svg class="size-6" fill="none" stroke="currentColor" stroke-width="1.75" viewBox="0 0 24 24" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="{{ $feature['icon'] }}" />
</svg>
</div>
<h3 class="mt-6 text-lg font-semibold tracking-tight">
{{ __($feature['title']) }}
</h3>
<p class="mt-2 text-pretty text-sm text-muted-foreground">
{{ __($feature['description']) }}
</p>
</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.4 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0