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, nothing you don’t',
'subheading' => 'A focused toolkit that scales with your product — from the first commit to production.',
'features' => null,
])
@php
$features ??= [
[
'title' => 'Own the source',
'description' => 'Components are copied into your project as plain Blade. No runtime lock-in — edit anything you like.',
'icon' => '<path d="M16 18 22 12 16 6" /><path d="M8 6 2 12l6 6" />',
],
[
'title' => 'Token-driven theming',
'description' => 'Re-theme light, dark, and per-surface variants by editing CSS variables only.',
'icon' => '<circle cx="13.5" cy="6.5" r=".5" fill="currentColor" /><circle cx="17.5" cy="10.5" r=".5" fill="currentColor" /><circle cx="8.5" cy="7.5" r=".5" fill="currentColor" /><circle cx="6.5" cy="12.5" r=".5" fill="currentColor" /><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2Z" />',
],
[
'title' => 'Accessible by default',
'description' => 'Every primitive targets WCAG 2.2 AA: keyboard support, focus-visible states, and ARIA wiring.',
'icon' => '<circle cx="12" cy="12" r="10" /><path d="m9 12 2 2 4-4" />',
],
[
'title' => 'Safe updates',
'description' => 'Pull upstream changes with one command. Edited files are never overwritten and produce a reviewable diff.',
'icon' => '<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" /><path d="M21 3v5h-5" /><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" /><path d="M3 21v-5h5" />',
],
[
'title' => 'Composable blocks',
'description' => 'Higher-level blocks compose the same primitives, so your patterns stay consistent across every page.',
'icon' => '<rect width="7" height="7" x="3" y="3" rx="1" /><rect width="7" height="7" x="14" y="3" rx="1" /><rect width="7" height="7" x="14" y="14" rx="1" /><rect width="7" height="7" x="3" y="14" rx="1" />',
],
[
'title' => 'Laravel-native',
'description' => 'Built on Blade, Tailwind, and Alpine. It fits the tools you already use instead of fighting them.',
'icon' => '<path d="m12 14 4-4" /><path d="M3.34 19a10 10 0 1 1 17.32 0" />',
],
];
@endphp
<x-ui.section space="xl" {{ $attributes }}>
<x-ui.container gutter="sm">
<x-ui.section-heading align="center" overline-style="badge" :overline="$eyebrow" :title="$heading" :subtitle="$subheading" />
<div class="mx-auto mt-14 grid max-w-5xl 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-center text-center">
<span class="flex size-14 items-center justify-center rounded-lg bg-primary/10 text-primary ring-1 ring-inset ring-primary/15" aria-hidden="true">
{{-- TRUST BOUNDARY: `icon` is rendered as raw SVG markup ({!! !!}); it must be
developer-authored path data, never user/CMS input. To render icons chosen
at runtime, switch to an internal key => svg map (see weather-widget-01). --}}
<svg class="size-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">{!! $feature['icon'] !!}</svg>
</span>
<h3 class="mt-6 text-sm font-semibold tracking-tight">{{ __($feature['title']) }}</h3>
<p class="mt-2 max-w-xs 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-centered
Registry contract
Install confidence
php artisan ui:add blocks/features-centered
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/features-centered.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 Centered (`features-centered`)
A centered feature grid where each item stacks a centred icon tile above a title and description.
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-centered
```
## Render it
```blade
<x-blocks.features-centered />
```
## Props
- `eyebrow` (string, default `Features`)
- `heading` (string, default `Everything you need, nothing you don’t`)
- `subheading` (string, default `A focused toolkit that scales with your product — from the first commit to production.`)
- `features` (mixed|null, default `null`)
## Use when
- Listing features where each item stacks a centred icon tile above a title and description.
- Fitting a simple, symmetrical feature grid without cards or dividers.
## Avoid when
- Use features-grid for a divider-separated grid, or features-cards for card-wrapped features with a Learn more link.
## Rules
- Render the installed block with `<x-blocks.features-centered />` 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-centered
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/features-centered.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 features where each item stacks a centred icon tile above a title and description.
- Fitting a simple, symmetrical feature grid without cards or dividers.
Avoid when
- Use features-grid for a divider-separated grid, or features-cards for card-wrapped features with a Learn more link.
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-centered />
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, nothing you don’t',
'subheading' => 'A focused toolkit that scales with your product — from the first commit to production.',
'features' => null,
])
@php
$features ??= [
[
'title' => 'Own the source',
'description' => 'Components are copied into your project as plain Blade. No runtime lock-in — edit anything you like.',
'icon' => '<path d="M16 18 22 12 16 6" /><path d="M8 6 2 12l6 6" />',
],
[
'title' => 'Token-driven theming',
'description' => 'Re-theme light, dark, and per-surface variants by editing CSS variables only.',
'icon' => '<circle cx="13.5" cy="6.5" r=".5" fill="currentColor" /><circle cx="17.5" cy="10.5" r=".5" fill="currentColor" /><circle cx="8.5" cy="7.5" r=".5" fill="currentColor" /><circle cx="6.5" cy="12.5" r=".5" fill="currentColor" /><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2Z" />',
],
[
'title' => 'Accessible by default',
'description' => 'Every primitive targets WCAG 2.2 AA: keyboard support, focus-visible states, and ARIA wiring.',
'icon' => '<circle cx="12" cy="12" r="10" /><path d="m9 12 2 2 4-4" />',
],
[
'title' => 'Safe updates',
'description' => 'Pull upstream changes with one command. Edited files are never overwritten and produce a reviewable diff.',
'icon' => '<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" /><path d="M21 3v5h-5" /><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" /><path d="M3 21v-5h5" />',
],
[
'title' => 'Composable blocks',
'description' => 'Higher-level blocks compose the same primitives, so your patterns stay consistent across every page.',
'icon' => '<rect width="7" height="7" x="3" y="3" rx="1" /><rect width="7" height="7" x="14" y="3" rx="1" /><rect width="7" height="7" x="14" y="14" rx="1" /><rect width="7" height="7" x="3" y="14" rx="1" />',
],
[
'title' => 'Laravel-native',
'description' => 'Built on Blade, Tailwind, and Alpine. It fits the tools you already use instead of fighting them.',
'icon' => '<path d="m12 14 4-4" /><path d="M3.34 19a10 10 0 1 1 17.32 0" />',
],
];
@endphp
<x-ui.section space="xl" {{ $attributes }}>
<x-ui.container gutter="sm">
<x-ui.section-heading align="center" overline-style="badge" :overline="$eyebrow" :title="$heading" :subtitle="$subheading" />
<div class="mx-auto mt-14 grid max-w-5xl 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-center text-center">
<span class="flex size-14 items-center justify-center rounded-lg bg-primary/10 text-primary ring-1 ring-inset ring-primary/15" aria-hidden="true">
{{-- TRUST BOUNDARY: `icon` is rendered as raw SVG markup ({!! !!}); it must be
developer-authored path data, never user/CMS input. To render icons chosen
at runtime, switch to an internal key => svg map (see weather-widget-01). --}}
<svg class="size-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">{!! $feature['icon'] !!}</svg>
</span>
<h3 class="mt-6 text-sm font-semibold tracking-tight">{{ __($feature['title']) }}</h3>
<p class="mt-2 max-w-xs 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.5 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0