Skip to content
Brok UI

Loading…

No results

Testimonials

Open source

Social-proof sections — grids, a single hero quote, a masonry wall, marquees and a carousel.

Preview

1 of 10

resources/views/blocks/testimonials-grid.blade.php Blade
@props([
    'eyebrow' => 'Loved by teams',
    'heading' => 'What our customers say',
    'subheading' => 'Thousands of teams ship faster with a UI system they own outright.',
    'testimonials' => null,
])

@php
    $testimonials ??= [
        [
            'quote' => 'We replaced three half-finished design systems with this in a weekend. The token model means re-theming is a config change, not a refactor.',
            'name' => 'Avery Mitchell',
            'role' => 'Head of Design, Northwind',
            'initials' => 'AM',
        ],
        [
            'quote' => 'Owning the source is the whole game. No runtime lock-in, no upgrade anxiety — just plain Blade we can read and edit.',
            'name' => 'Jordan Lee',
            'role' => 'Staff Engineer, Lumen',
            'initials' => 'JL',
        ],
        [
            'quote' => 'Accessibility used to be a backlog item. Now keyboard support and focus states ship by default with every block.',
            'name' => 'Priya Nair',
            'role' => 'Product Lead, Cadence',
            'initials' => 'PN',
        ],
        [
            'quote' => 'The diff-based updates are brilliant. Our edits are never clobbered, and upstream fixes still land cleanly.',
            'name' => 'Marcus Bell',
            'role' => 'CTO, Forge & Co',
            'initials' => 'MB',
        ],
        [
            'quote' => 'Our marketing site and internal admin now share one visual language. Customers and ops finally feel like the same product.',
            'name' => 'Sofia Romero',
            'role' => 'Founder, Tideway',
            'initials' => 'SR',
        ],
        [
            'quote' => 'Setup took minutes. We were composing on-brand pages before lunch and never touched a node_modules rabbit hole.',
            'name' => 'Daniel Okafor',
            'role' => 'Engineering Manager, Beacon',
            'initials' => 'DO',
        ],
    ];
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <x-ui.container gutter="sm">
        <x-ui.section-heading align="center" overline-style="label" :overline="$eyebrow" :title="$heading" :subtitle="$subheading" />

        <div class="mt-12 grid grid-cols-1 gap-6 sm:mt-16 sm:grid-cols-2 lg:grid-cols-3">
            @foreach ($testimonials as $testimonial)
                <x-ui.quote-card
                    :quote="__($testimonial['quote'])"
                    :name="__($testimonial['name'])"
                    :role="__($testimonial['role'])"
                    :initials="$testimonial['initials']"
                    class="transition-shadow hover:shadow-md"
                />
            @endforeach
        </div>
    </x-ui.container>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/testimonials-grid

Installs these dependencies automatically:

Registry contract

Install confidence

php artisan ui:add blocks/testimonials-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.5
License
open
Stability
stable
Contract
v1
Foundation
≥ 1.0.0
Type Generated target
blade resources/views/blocks/testimonials-grid.blade.php

Registry dependencies

container quote-card section section-heading

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.

testimonials-grid.md
# Brok UI block: Testimonials Grid (`testimonials-grid`)

A centered heading above a responsive 2-to-3-column grid of testimonial cards, each with a quote-mark icon, blockquote, and an avatar with name and role.

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/testimonials-grid
```

## Render it

```blade
<x-blocks.testimonials-grid />
```

## Props

- `eyebrow` (string, default `Loved by teams`) — Small label shown above the heading.
- `heading` (string, default `What our customers say`) — Section heading.
- `subheading` (string, default `Thousands of teams ship faster with a UI system they own outright.`) — Supporting copy under the heading.
- `testimonials` (mixed|null, default `null`) — Quote entries with quote text, name, role and initials; null falls back to sample data.

## Use when

- Showing several customer testimonials in a responsive grid of quote cards with avatar, name and role.
- Using it as the default testimonials layout when no special treatment (marquee, carousel, stats) is needed.

## Avoid when

- Wanting one large featured quote; use testimonials-single instead. Wanting a scrolling marquee; use testimonials-marquee instead.

## Rules

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

  • Showing several customer testimonials in a responsive grid of quote cards with avatar, name and role.
  • Using it as the default testimonials layout when no special treatment (marquee, carousel, stats) is needed.

Avoid when

  • Wanting one large featured quote; use testimonials-single instead. Wanting a scrolling marquee; use testimonials-marquee instead.

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.testimonials-grid />

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/testimonials-grid.blade.php Blade
@props([
    'eyebrow' => 'Loved by teams',
    'heading' => 'What our customers say',
    'subheading' => 'Thousands of teams ship faster with a UI system they own outright.',
    'testimonials' => null,
])

@php
    $testimonials ??= [
        [
            'quote' => 'We replaced three half-finished design systems with this in a weekend. The token model means re-theming is a config change, not a refactor.',
            'name' => 'Avery Mitchell',
            'role' => 'Head of Design, Northwind',
            'initials' => 'AM',
        ],
        [
            'quote' => 'Owning the source is the whole game. No runtime lock-in, no upgrade anxiety — just plain Blade we can read and edit.',
            'name' => 'Jordan Lee',
            'role' => 'Staff Engineer, Lumen',
            'initials' => 'JL',
        ],
        [
            'quote' => 'Accessibility used to be a backlog item. Now keyboard support and focus states ship by default with every block.',
            'name' => 'Priya Nair',
            'role' => 'Product Lead, Cadence',
            'initials' => 'PN',
        ],
        [
            'quote' => 'The diff-based updates are brilliant. Our edits are never clobbered, and upstream fixes still land cleanly.',
            'name' => 'Marcus Bell',
            'role' => 'CTO, Forge & Co',
            'initials' => 'MB',
        ],
        [
            'quote' => 'Our marketing site and internal admin now share one visual language. Customers and ops finally feel like the same product.',
            'name' => 'Sofia Romero',
            'role' => 'Founder, Tideway',
            'initials' => 'SR',
        ],
        [
            'quote' => 'Setup took minutes. We were composing on-brand pages before lunch and never touched a node_modules rabbit hole.',
            'name' => 'Daniel Okafor',
            'role' => 'Engineering Manager, Beacon',
            'initials' => 'DO',
        ],
    ];
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <x-ui.container gutter="sm">
        <x-ui.section-heading align="center" overline-style="label" :overline="$eyebrow" :title="$heading" :subtitle="$subheading" />

        <div class="mt-12 grid grid-cols-1 gap-6 sm:mt-16 sm:grid-cols-2 lg:grid-cols-3">
            @foreach ($testimonials as $testimonial)
                <x-ui.quote-card
                    :quote="__($testimonial['quote'])"
                    :name="__($testimonial['name'])"
                    :role="__($testimonial['role'])"
                    :initials="$testimonial['initials']"
                    class="transition-shadow hover:shadow-md"
                />
            @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