Skip to content
Brok UI

Loading…

No results

Features

Open source

Feature sections — icon grids, bordered cards, alternating media rows, bento layouts, a services variant and an industries grid.

Preview

11 of 23

resources/views/blocks/features-highlight.blade.php Blade
@props([
    'eyebrow'     => 'Why teams choose us',
    'heading'     => 'Everything you need, nothing you don\'t',
    'description' => 'Built for modern product teams who move fast without breaking things. Every feature is purposeful, composable, and production-ready from day one.',
    'heroLabel'   => 'Most loved',
    'heroTitle'   => 'Composable design system',
    'heroBody'    => 'A complete token-driven primitive library that snaps together like building blocks. Swap themes, extend variants, and ship consistent UI across every surface — all without touching a line of CSS.',
    'features'    => null,
])

@php
    $features ??= [
        ['icon' => 'bolt', 'title' => 'Instant setup', 'body' => 'One artisan command copies exactly what you need into your project. No build step, no runtime dependency.'],
        ['icon' => 'shield', 'title' => 'Accessible by default', 'body' => 'Every primitive targets WCAG 2.2 AA with proper roles, labels, and keyboard navigation baked in.'],
        ['icon' => 'moon', 'title' => 'Dark mode ready', 'body' => 'Semantic colour tokens mean dark mode is a single attribute on the root element — zero extra classes.'],
        ['icon' => 'arrows', 'title' => 'RTL & localisation', 'body' => 'Logical CSS properties throughout, so every component mirrors correctly under dir="rtl" without patches.'],
    ];

    $icons = [
        'bolt' => '<path stroke-linecap="round" stroke-linejoin="round" d="m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"/>',
        'shield' => '<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"/>',
        'moon' => '<path stroke-linecap="round" stroke-linejoin="round" d="M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"/>',
        'arrows' => '<path stroke-linecap="round" stroke-linejoin="round" d="M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"/>',
    ];
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <x-ui.container size="xl" gutter="sm">
        <div class="mx-auto max-w-2xl text-center">
            @if ($eyebrow)
                <p class="text-sm font-semibold uppercase tracking-widest text-primary">{{ __($eyebrow) }}</p>
            @endif
            <h2 class="mt-4 text-3xl font-bold tracking-tight sm:text-4xl">{{ __($heading) }}</h2>
            @if ($description)
                <p class="mt-4 text-sm leading-relaxed text-muted-foreground">{{ __($description) }}</p>
            @endif
        </div>

        <div class="mt-12 grid gap-4 lg:grid-cols-3 lg:grid-rows-2">
            <x-ui.card class="relative flex flex-col overflow-hidden lg:col-span-2 lg:row-span-2">
                <x-ui.card.header class="gap-4">
                    <x-ui.icon.tile>
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" class="size-5" aria-hidden="true">{!! $icons['bolt'] !!}</svg>
                    </x-ui.icon.tile>
                    <div class="flex flex-wrap items-center gap-2">
                        <x-ui.card.title class="text-xl sm:text-2xl">{{ __($heroTitle) }}</x-ui.card.title>
                        <x-ui.badge variant="secondary" size="sm">{{ __($heroLabel) }}</x-ui.badge>
                    </div>
                    <x-ui.card.description class="text-sm leading-relaxed sm:text-base">{{ __($heroBody) }}</x-ui.card.description>
                </x-ui.card.header>
                <x-ui.card.content class="flex flex-1 items-end">
                    <div aria-hidden="true" class="w-full overflow-hidden rounded-lg border border-border bg-muted">
                        <div class="flex items-center gap-2 border-b border-border px-4 py-2">
                            <span class="size-2 rounded-full bg-destructive/40"></span>
                            <span class="size-2 rounded-full bg-warning/40"></span>
                            <span class="size-2 rounded-full bg-success/40"></span>
                            <div class="ms-4 h-2 w-32 rounded bg-muted-foreground/20"></div>
                        </div>
                        <div class="space-y-4 p-4">
                            <div class="flex items-center gap-4">
                                <div class="size-8 rounded-md bg-primary/20"></div>
                                <div class="flex-1 space-y-2"><div class="h-2 w-24 rounded bg-foreground/20"></div><div class="h-2 w-40 rounded bg-muted-foreground/20"></div></div>
                                <div class="h-6 w-16 rounded-full bg-primary/30"></div>
                            </div>
                            <div class="flex items-center gap-4">
                                <div class="size-8 rounded-md bg-secondary/40"></div>
                                <div class="flex-1 space-y-2"><div class="h-2 w-32 rounded bg-foreground/20"></div><div class="h-2 w-28 rounded bg-muted-foreground/20"></div></div>
                                <div class="h-6 w-12 rounded-full bg-secondary/50"></div>
                            </div>
                            <div class="flex items-center gap-4">
                                <div class="size-8 rounded-md bg-accent/40"></div>
                                <div class="flex-1 space-y-2"><div class="h-2 w-20 rounded bg-foreground/20"></div><div class="h-2 w-36 rounded bg-muted-foreground/20"></div></div>
                                <div class="h-6 w-14 rounded-full bg-accent/50"></div>
                            </div>
                        </div>
                    </div>
                </x-ui.card.content>
            </x-ui.card>

            @foreach ($features as $feature)
                <x-ui.card class="flex flex-col gap-4 p-6">
                    <span aria-hidden="true" class="inline-flex size-9 items-center justify-center rounded-md bg-primary/10 text-primary">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" class="size-5" aria-hidden="true">{!! $icons[$feature['icon']] ?? $icons['bolt'] !!}</svg>
                    </span>
                    <div>
                        <h3 class="text-sm font-semibold leading-snug tracking-tight">{{ __($feature['title']) }}</h3>
                        <p class="mt-2 text-sm leading-relaxed text-muted-foreground">{{ __($feature['body']) }}</p>
                    </div>
                </x-ui.card>
            @endforeach
        </div>
    </x-ui.container>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/features-highlight

Installs these dependencies automatically:

Registry contract

Install confidence

php artisan ui:add blocks/features-highlight 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-highlight.blade.php

Registry dependencies

badge card container icon 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.

features-highlight.md
# Brok UI block: Features Highlight (`features-highlight`)

A feature section with one large highlighted feature tile and a decorative preview beside a set of smaller supporting feature cards in a bento layout.

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-highlight
```

## Render it

```blade
<x-blocks.features-highlight />
```

## Props

- `eyebrow` (string, default `Why teams choose us`)
- `heading` (string, default `Everything you need, nothing you don\'t`)
- `description` (string, default `Built for modern product teams who move fast without breaking things. Every feature is purposeful, composable, and production-ready from day one.`)
- `hero-label` (string, default `Most loved`)
- `hero-title` (string, default `Composable design system`)
- `hero-body` (string, default `A complete token-driven primitive library that snaps together like building blocks. Swap themes, extend variants, and ship consistent UI across every surface — all without touching a line of CSS.`)
- `features` (mixed|null, default `null`)

## Use when

- Pairing one large highlighted feature tile with a decorative preview and a set of smaller supporting feature cards.
- Giving a flagship feature more visual weight than the rest, in a bento-style layout.

## Avoid when

- Use features-grid or features-cards for a uniform grid without a single highlighted tile.

## Rules

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

  • Pairing one large highlighted feature tile with a decorative preview and a set of smaller supporting feature cards.
  • Giving a flagship feature more visual weight than the rest, in a bento-style layout.

Avoid when

  • Use features-grid or features-cards for a uniform grid without a single highlighted tile.

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:

resources/views/welcome.blade.php Blade
<x-blocks.features-highlight />

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/features-highlight.blade.php Blade
@props([
    'eyebrow'     => 'Why teams choose us',
    'heading'     => 'Everything you need, nothing you don\'t',
    'description' => 'Built for modern product teams who move fast without breaking things. Every feature is purposeful, composable, and production-ready from day one.',
    'heroLabel'   => 'Most loved',
    'heroTitle'   => 'Composable design system',
    'heroBody'    => 'A complete token-driven primitive library that snaps together like building blocks. Swap themes, extend variants, and ship consistent UI across every surface — all without touching a line of CSS.',
    'features'    => null,
])

@php
    $features ??= [
        ['icon' => 'bolt', 'title' => 'Instant setup', 'body' => 'One artisan command copies exactly what you need into your project. No build step, no runtime dependency.'],
        ['icon' => 'shield', 'title' => 'Accessible by default', 'body' => 'Every primitive targets WCAG 2.2 AA with proper roles, labels, and keyboard navigation baked in.'],
        ['icon' => 'moon', 'title' => 'Dark mode ready', 'body' => 'Semantic colour tokens mean dark mode is a single attribute on the root element — zero extra classes.'],
        ['icon' => 'arrows', 'title' => 'RTL & localisation', 'body' => 'Logical CSS properties throughout, so every component mirrors correctly under dir="rtl" without patches.'],
    ];

    $icons = [
        'bolt' => '<path stroke-linecap="round" stroke-linejoin="round" d="m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"/>',
        'shield' => '<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"/>',
        'moon' => '<path stroke-linecap="round" stroke-linejoin="round" d="M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"/>',
        'arrows' => '<path stroke-linecap="round" stroke-linejoin="round" d="M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"/>',
    ];
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <x-ui.container size="xl" gutter="sm">
        <div class="mx-auto max-w-2xl text-center">
            @if ($eyebrow)
                <p class="text-sm font-semibold uppercase tracking-widest text-primary">{{ __($eyebrow) }}</p>
            @endif
            <h2 class="mt-4 text-3xl font-bold tracking-tight sm:text-4xl">{{ __($heading) }}</h2>
            @if ($description)
                <p class="mt-4 text-sm leading-relaxed text-muted-foreground">{{ __($description) }}</p>
            @endif
        </div>

        <div class="mt-12 grid gap-4 lg:grid-cols-3 lg:grid-rows-2">
            <x-ui.card class="relative flex flex-col overflow-hidden lg:col-span-2 lg:row-span-2">
                <x-ui.card.header class="gap-4">
                    <x-ui.icon.tile>
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" class="size-5" aria-hidden="true">{!! $icons['bolt'] !!}</svg>
                    </x-ui.icon.tile>
                    <div class="flex flex-wrap items-center gap-2">
                        <x-ui.card.title class="text-xl sm:text-2xl">{{ __($heroTitle) }}</x-ui.card.title>
                        <x-ui.badge variant="secondary" size="sm">{{ __($heroLabel) }}</x-ui.badge>
                    </div>
                    <x-ui.card.description class="text-sm leading-relaxed sm:text-base">{{ __($heroBody) }}</x-ui.card.description>
                </x-ui.card.header>
                <x-ui.card.content class="flex flex-1 items-end">
                    <div aria-hidden="true" class="w-full overflow-hidden rounded-lg border border-border bg-muted">
                        <div class="flex items-center gap-2 border-b border-border px-4 py-2">
                            <span class="size-2 rounded-full bg-destructive/40"></span>
                            <span class="size-2 rounded-full bg-warning/40"></span>
                            <span class="size-2 rounded-full bg-success/40"></span>
                            <div class="ms-4 h-2 w-32 rounded bg-muted-foreground/20"></div>
                        </div>
                        <div class="space-y-4 p-4">
                            <div class="flex items-center gap-4">
                                <div class="size-8 rounded-md bg-primary/20"></div>
                                <div class="flex-1 space-y-2"><div class="h-2 w-24 rounded bg-foreground/20"></div><div class="h-2 w-40 rounded bg-muted-foreground/20"></div></div>
                                <div class="h-6 w-16 rounded-full bg-primary/30"></div>
                            </div>
                            <div class="flex items-center gap-4">
                                <div class="size-8 rounded-md bg-secondary/40"></div>
                                <div class="flex-1 space-y-2"><div class="h-2 w-32 rounded bg-foreground/20"></div><div class="h-2 w-28 rounded bg-muted-foreground/20"></div></div>
                                <div class="h-6 w-12 rounded-full bg-secondary/50"></div>
                            </div>
                            <div class="flex items-center gap-4">
                                <div class="size-8 rounded-md bg-accent/40"></div>
                                <div class="flex-1 space-y-2"><div class="h-2 w-20 rounded bg-foreground/20"></div><div class="h-2 w-36 rounded bg-muted-foreground/20"></div></div>
                                <div class="h-6 w-14 rounded-full bg-accent/50"></div>
                            </div>
                        </div>
                    </div>
                </x-ui.card.content>
            </x-ui.card>

            @foreach ($features as $feature)
                <x-ui.card class="flex flex-col gap-4 p-6">
                    <span aria-hidden="true" class="inline-flex size-9 items-center justify-center rounded-md bg-primary/10 text-primary">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" class="size-5" aria-hidden="true">{!! $icons[$feature['icon']] ?? $icons['bolt'] !!}</svg>
                    </span>
                    <div>
                        <h3 class="text-sm font-semibold leading-snug tracking-tight">{{ __($feature['title']) }}</h3>
                        <p class="mt-2 text-sm leading-relaxed text-muted-foreground">{{ __($feature['body']) }}</p>
                    </div>
                </x-ui.card>
            @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