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

10 of 10

resources/views/blocks/testimonials-tweets.blade.php Blade
@props([
    'heading' => 'Don\'t take our word for it',
    'subheading' => 'See what developers and teams are posting about shipping with a UI system they fully own.',
    'tweets' => null,
])

@php
    $tweets ??= [
        [
            'name' => 'Amara Okafor',
            'handle' => 'amaracodes',
            'text' => '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.',
            'time' => 'Jan 14',
            'likes' => '482',
            'retweets' => '96',
            'replies' => '21',
            'verified' => true,
            'buyer' => true,
        ],
        [
            'name' => 'Jonas Berg',
            'handle' => 'jonasberg',
            'text' => 'The token system is the part that sold the rest of the team. One file re-themes light, dark, and every surface.',
            'time' => 'Jan 12',
            'likes' => '318',
            'retweets' => '54',
            'replies' => '12',
            'verified' => true,
            'buyer' => false,
        ],
        [
            'name' => 'Priya Nair',
            'handle' => 'priyabuilds',
            'text' => 'Updates are genuinely painless. My edited files are never clobbered, and the diff tells me exactly what changed upstream before I accept it.',
            'time' => 'Jan 10',
            'likes' => '227',
            'retweets' => '41',
            'replies' => '9',
            'verified' => false,
            'buyer' => true,
        ],
        [
            'name' => 'Mateo Rossi',
            'handle' => 'mateorossi',
            'text' => 'Accessibility was handled out of the box — keyboard, focus states, RTL. That alone saved us a sprint.',
            'time' => 'Jan 9',
            'likes' => '401',
            'retweets' => '73',
            'replies' => '18',
            'verified' => true,
            'buyer' => false,
        ],
        [
            'name' => 'Sofia Almeida',
            'handle' => 'sofia_a',
            'text' => 'It feels like shadcn, but native to Laravel. Plain Blade, no runtime lock-in, and it composes with everything we already had.',
            'time' => 'Jan 7',
            'likes' => '556',
            'retweets' => '118',
            'replies' => '27',
            'verified' => true,
            'buyer' => true,
        ],
        [
            'name' => 'Liang Wei',
            'handle' => 'liangw',
            'text' => 'Our designers and engineers finally speak the same language. The variant families map cleanly onto our component library.',
            'time' => 'Jan 5',
            'likes' => '193',
            'retweets' => '32',
            'replies' => '7',
            'verified' => false,
            'buyer' => false,
        ],
    ];
@endphp

<x-ui.section data-slot="testimonials-10" space="xl" {{ $attributes }}>
    <x-ui.container gutter="sm">
        <x-ui.section-heading align="center" :title="$heading" :subtitle="$subheading" />

        <ul role="list" class="mt-12 columns-1 gap-6 sm:mt-16 sm:columns-2 lg:columns-3">
            @foreach ($tweets as $tweet)
                <li class="mb-6 break-inside-avoid">
                    <x-ui.twitter-card
                        class="max-w-none shadow-sm transition-shadow hover:shadow-md focus-within:shadow-md"
                        :name="$tweet['name']"
                        :handle="$tweet['handle']"
                        :verified="$tweet['verified'] ?? false"
                        :text="__($tweet['text'])"
                        :time="__($tweet['time'])"
                        :replies="(string) $tweet['replies']"
                        :retweets="(string) $tweet['retweets']"
                        :likes="(string) $tweet['likes']"
                        :views="null"
                        :interactive="false"
                    >
                        @if ($tweet['buyer'] ?? false)
                            <x-ui.badge variant="success" size="sm" class="mt-4">
                                <svg class="size-3" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
                                    <path d="M20 6L9 17l-5-5" />
                                </svg>
                                {{ __('Verified buyer') }}
                            </x-ui.badge>
                        @endif
                    </x-ui.twitter-card>
                </li>
            @endforeach
        </ul>
    </x-ui.container>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/testimonials-tweets

Installs these dependencies automatically:

Registry contract

Install confidence

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

Registry dependencies

badge container section section-heading twitter-card

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-tweets.md
# Brok UI block: Testimonials Tweets (`testimonials-tweets`)

A tweet-styled testimonial wall: a heading and subheading above a responsive masonry of <x-ui.twitter-card> posts (non-interactive, no view count), each with an optional verified-buyer badge slotted in.

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

## Render it

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

## Props

- `heading` (string, default `Don\'t take our word for it`) — Section heading.
- `subheading` (string, default `See what developers and teams are posting about shipping with a UI system they fully own.`) — Supporting copy under the heading.
- `tweets` (mixed|null, default `null`) — Post entries with name, handle, text, time, engagement counts, verified flag and buyer flag; null falls back to sample data.

## Use when

- Presenting testimonials styled as social media posts in a masonry wall, optionally with a verified-buyer badge.
- Reinforcing authenticity when quotes were sourced from social media.

## Avoid when

- Presenting testimonials collected directly rather than from social posts; use testimonials-grid or testimonials-masonry instead.

## Rules

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

  • Presenting testimonials styled as social media posts in a masonry wall, optionally with a verified-buyer badge.
  • Reinforcing authenticity when quotes were sourced from social media.

Avoid when

  • Presenting testimonials collected directly rather than from social posts; use testimonials-grid or testimonials-masonry instead.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.
Anatomy
root testimonials-10

Usage

Render the block as a component, passing data where useful:

resources/views/welcome.blade.php Blade
<x-blocks.testimonials-tweets />

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-tweets.blade.php Blade
@props([
    'heading' => 'Don\'t take our word for it',
    'subheading' => 'See what developers and teams are posting about shipping with a UI system they fully own.',
    'tweets' => null,
])

@php
    $tweets ??= [
        [
            'name' => 'Amara Okafor',
            'handle' => 'amaracodes',
            'text' => '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.',
            'time' => 'Jan 14',
            'likes' => '482',
            'retweets' => '96',
            'replies' => '21',
            'verified' => true,
            'buyer' => true,
        ],
        [
            'name' => 'Jonas Berg',
            'handle' => 'jonasberg',
            'text' => 'The token system is the part that sold the rest of the team. One file re-themes light, dark, and every surface.',
            'time' => 'Jan 12',
            'likes' => '318',
            'retweets' => '54',
            'replies' => '12',
            'verified' => true,
            'buyer' => false,
        ],
        [
            'name' => 'Priya Nair',
            'handle' => 'priyabuilds',
            'text' => 'Updates are genuinely painless. My edited files are never clobbered, and the diff tells me exactly what changed upstream before I accept it.',
            'time' => 'Jan 10',
            'likes' => '227',
            'retweets' => '41',
            'replies' => '9',
            'verified' => false,
            'buyer' => true,
        ],
        [
            'name' => 'Mateo Rossi',
            'handle' => 'mateorossi',
            'text' => 'Accessibility was handled out of the box — keyboard, focus states, RTL. That alone saved us a sprint.',
            'time' => 'Jan 9',
            'likes' => '401',
            'retweets' => '73',
            'replies' => '18',
            'verified' => true,
            'buyer' => false,
        ],
        [
            'name' => 'Sofia Almeida',
            'handle' => 'sofia_a',
            'text' => 'It feels like shadcn, but native to Laravel. Plain Blade, no runtime lock-in, and it composes with everything we already had.',
            'time' => 'Jan 7',
            'likes' => '556',
            'retweets' => '118',
            'replies' => '27',
            'verified' => true,
            'buyer' => true,
        ],
        [
            'name' => 'Liang Wei',
            'handle' => 'liangw',
            'text' => 'Our designers and engineers finally speak the same language. The variant families map cleanly onto our component library.',
            'time' => 'Jan 5',
            'likes' => '193',
            'retweets' => '32',
            'replies' => '7',
            'verified' => false,
            'buyer' => false,
        ],
    ];
@endphp

<x-ui.section data-slot="testimonials-10" space="xl" {{ $attributes }}>
    <x-ui.container gutter="sm">
        <x-ui.section-heading align="center" :title="$heading" :subtitle="$subheading" />

        <ul role="list" class="mt-12 columns-1 gap-6 sm:mt-16 sm:columns-2 lg:columns-3">
            @foreach ($tweets as $tweet)
                <li class="mb-6 break-inside-avoid">
                    <x-ui.twitter-card
                        class="max-w-none shadow-sm transition-shadow hover:shadow-md focus-within:shadow-md"
                        :name="$tweet['name']"
                        :handle="$tweet['handle']"
                        :verified="$tweet['verified'] ?? false"
                        :text="__($tweet['text'])"
                        :time="__($tweet['time'])"
                        :replies="(string) $tweet['replies']"
                        :retweets="(string) $tweet['retweets']"
                        :likes="(string) $tweet['likes']"
                        :views="null"
                        :interactive="false"
                    >
                        @if ($tweet['buyer'] ?? false)
                            <x-ui.badge variant="success" size="sm" class="mt-4">
                                <svg class="size-3" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
                                    <path d="M20 6L9 17l-5-5" />
                                </svg>
                                {{ __('Verified buyer') }}
                            </x-ui.badge>
                        @endif
                    </x-ui.twitter-card>
                </li>
            @endforeach
        </ul>
    </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.1.2
Status
Stable
License
open
Deprecation
Not deprecated
Contract
v1
Foundation
≥ 1.0.0