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

3 of 10

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

@php
    $testimonials ??= [
        ['quote' => 'We replaced a tangle of one-off components with this in an afternoon. Owning the source means no more fighting a black-box dependency — we just edit the Blade.', 'name' => 'Amara Okafor', 'role' => 'Staff Engineer, Northwind'],
        ['quote' => 'The token system is the part that sold the rest of the team. One file re-themes light, dark, and every surface.', 'name' => 'Jonas Berg', 'role' => 'Design Lead, Loom Labs'],
        ['quote' => 'Updates are genuinely painless. Our edited files are never clobbered, and the diff tells me exactly what changed upstream before I accept it.', 'name' => 'Priya Nair', 'role' => 'Frontend Architect, Cartographer'],
        ['quote' => 'Accessibility was handled out of the box — keyboard, focus states, RTL. That alone saved us a sprint.', 'name' => 'Mateo Rossi', 'role' => 'Product Engineer, Fathom'],
        ['quote' => 'It feels like shadcn, but native to Laravel. Plain Blade, no runtime lock-in, and it composes with everything we already had.', 'name' => 'Sofia Almeida', 'role' => 'CTO, Driftwood'],
        ['quote' => 'Our designers and engineers finally speak the same language. The variant families map cleanly onto our component library in Figma.', 'name' => 'Liang Wei', 'role' => 'Head of Design Systems, Aperture'],
        ['quote' => 'Shipped a full marketing site in days using the blocks, then pulled the same primitives into our admin app. Zero re-learning.', 'name' => 'Hannah Schmidt', 'role' => 'Engineering Manager, Quill'],
        ['quote' => 'The copy-into-your-app model is exactly right. No version-bump anxiety, no surprise breaking changes in production.', 'name' => 'Diego Fernández', 'role' => 'Tech Lead, Beacon'],
        ['quote' => 'Best onboarding for a new hire we have had — they could read every component because it is just our code, in our repo.', 'name' => 'Yuki Tanaka', 'role' => 'Senior Developer, Meridian'],
    ];
@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="relative mt-14">
            {{-- Top/bottom token gradient fade masks --}}
            <div class="pointer-events-none absolute inset-x-0 top-0 z-10 h-16 bg-gradient-to-b from-background to-transparent" aria-hidden="true"></div>
            <div class="pointer-events-none absolute inset-x-0 bottom-0 z-10 h-16 bg-gradient-to-t from-background to-transparent" aria-hidden="true"></div>

            <ul role="list" class="columns-1 gap-6 sm:columns-2 lg:columns-3">
                @foreach ($testimonials as $testimonial)
                    <li class="mb-6 break-inside-avoid">
                        <x-ui.quote-card
                            glyph="none"
                            :divider="false"
                            :quote="__($testimonial['quote'])"
                            :name="$testimonial['name']"
                            :role="__($testimonial['role'])"
                            class="transition-shadow hover:shadow-md focus-within:shadow-md"
                        />
                    </li>
                @endforeach
            </ul>
        </div>
    </x-ui.container>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/testimonials-masonry

Installs these dependencies automatically:

Registry contract

Install confidence

php artisan ui:add blocks/testimonials-masonry 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-masonry.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-masonry.md
# Brok UI block: Testimonials Staggered (`testimonials-masonry`)

A staggered masonry wall of testimonial cards laid out in CSS columns, each with a quote, avatar, name and role, framed by top and bottom gradient fade masks.

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

## Render it

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

## Props

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

## Use when

- Displaying many testimonials as a staggered masonry wall for visual density.
- Filling a wide, varied-height layout when you have enough quotes.

## Avoid when

- Having only a handful of quotes that would look sparse in a masonry wall; use testimonials-grid instead.

## Rules

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

  • Displaying many testimonials as a staggered masonry wall for visual density.
  • Filling a wide, varied-height layout when you have enough quotes.

Avoid when

  • Having only a handful of quotes that would look sparse in a masonry wall; use testimonials-grid 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-masonry />

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

@php
    $testimonials ??= [
        ['quote' => 'We replaced a tangle of one-off components with this in an afternoon. Owning the source means no more fighting a black-box dependency — we just edit the Blade.', 'name' => 'Amara Okafor', 'role' => 'Staff Engineer, Northwind'],
        ['quote' => 'The token system is the part that sold the rest of the team. One file re-themes light, dark, and every surface.', 'name' => 'Jonas Berg', 'role' => 'Design Lead, Loom Labs'],
        ['quote' => 'Updates are genuinely painless. Our edited files are never clobbered, and the diff tells me exactly what changed upstream before I accept it.', 'name' => 'Priya Nair', 'role' => 'Frontend Architect, Cartographer'],
        ['quote' => 'Accessibility was handled out of the box — keyboard, focus states, RTL. That alone saved us a sprint.', 'name' => 'Mateo Rossi', 'role' => 'Product Engineer, Fathom'],
        ['quote' => 'It feels like shadcn, but native to Laravel. Plain Blade, no runtime lock-in, and it composes with everything we already had.', 'name' => 'Sofia Almeida', 'role' => 'CTO, Driftwood'],
        ['quote' => 'Our designers and engineers finally speak the same language. The variant families map cleanly onto our component library in Figma.', 'name' => 'Liang Wei', 'role' => 'Head of Design Systems, Aperture'],
        ['quote' => 'Shipped a full marketing site in days using the blocks, then pulled the same primitives into our admin app. Zero re-learning.', 'name' => 'Hannah Schmidt', 'role' => 'Engineering Manager, Quill'],
        ['quote' => 'The copy-into-your-app model is exactly right. No version-bump anxiety, no surprise breaking changes in production.', 'name' => 'Diego Fernández', 'role' => 'Tech Lead, Beacon'],
        ['quote' => 'Best onboarding for a new hire we have had — they could read every component because it is just our code, in our repo.', 'name' => 'Yuki Tanaka', 'role' => 'Senior Developer, Meridian'],
    ];
@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="relative mt-14">
            {{-- Top/bottom token gradient fade masks --}}
            <div class="pointer-events-none absolute inset-x-0 top-0 z-10 h-16 bg-gradient-to-b from-background to-transparent" aria-hidden="true"></div>
            <div class="pointer-events-none absolute inset-x-0 bottom-0 z-10 h-16 bg-gradient-to-t from-background to-transparent" aria-hidden="true"></div>

            <ul role="list" class="columns-1 gap-6 sm:columns-2 lg:columns-3">
                @foreach ($testimonials as $testimonial)
                    <li class="mb-6 break-inside-avoid">
                        <x-ui.quote-card
                            glyph="none"
                            :divider="false"
                            :quote="__($testimonial['quote'])"
                            :name="$testimonial['name']"
                            :role="__($testimonial['role'])"
                            class="transition-shadow hover:shadow-md focus-within:shadow-md"
                        />
                    </li>
                @endforeach
            </ul>
        </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