Skip to content
Brok UI

Loading…

No results

Pricing

Open source

Pricing sections — from a simple three-tier table (with an optional billing-period toggle) to gradient and elevated cards, tinted and horizontal layouts, and a tabbed switcher.

Preview

6 of 10

resources/views/blocks/pricing-elevated.blade.php Blade
@props([
    'heading' => 'Pricing that scales with you',
    'subheading' => 'Simple, transparent plans. Upgrade, downgrade, or cancel whenever you need.',
    'badgeLabel' => 'Best Value',
    'trustNote' => 'Secure checkout, Cancel anytime',
    'plans' => null,
])

@php
    $plans ??= [
        [
            'name' => 'Hobby',
            'price' => '$0',
            'priceNote' => 'per month',
            'description' => 'For side projects and getting a feel for the platform.',
            'featured' => false,
            'cta' => 'Get started',
            'href' => '#',
            'features' => [
                '1 project',
                'Community support',
                'Basic components',
                '1 GB storage',
            ],
        ],
        [
            'name' => 'Pro',
            'price' => '$29',
            'priceNote' => 'per month',
            'description' => 'For growing teams shipping production apps every week.',
            'featured' => true,
            'cta' => 'Start free trial',
            'href' => '#',
            'features' => [
                'Unlimited projects',
                'Priority support',
                'All components & blocks',
                'Advanced analytics',
                '100 GB storage',
            ],
        ],
        [
            'name' => 'Enterprise',
            'price' => null,
            'customPricing' => 'Custom',
            'priceNote' => 'billed annually',
            'description' => 'For organisations that need control, scale, and security.',
            'featured' => false,
            'cta' => 'Contact sales',
            'href' => '#',
            'features' => [
                'Everything in Pro',
                'SSO & advanced roles',
                'Audit logs & SLA',
                'Dedicated support',
                'Unlimited storage',
            ],
        ],
    ];
@endphp

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

        <div class="mx-auto mt-12 grid max-w-md grid-cols-1 items-start gap-6 sm:max-w-none lg:grid-cols-3 lg:items-center">
            @foreach ($plans as $plan)
                @php
                    $featured = $plan['featured'] ?? false;
                    $priceLabel = $plan['customPricing'] ?? $plan['price'] ?? '';
                @endphp

                @if ($featured)
                    {{-- Featured plan: outer frame lifts the inner card for a floating, elevated look. --}}
                    <div class="rounded-md bg-muted/50 p-2 shadow-sm lg:-mt-4 lg:scale-105">
                        <x-ui.card class="relative flex h-full flex-col rounded-lg border bg-card shadow-lg">
                            <x-ui.badge
                                variant="success"
                                class="absolute -top-3 start-1/2 -translate-x-1/2 shadow-sm rtl:translate-x-1/2"
                            >
                                <svg class="size-4" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                                    <path d="M10 2a8 8 0 100 16 8 8 0 000-16zm.75 4.75a.75.75 0 00-1.5 0v.34c-1.16.23-2 1.13-2 2.28 0 1.27 1.02 2.06 2.25 2.36v1.78a1.1 1.1 0 01-.62-.5.75.75 0 10-1.3.75c.4.7 1.08 1.13 1.92 1.27v.49a.75.75 0 001.5 0v-.5c1.2-.24 2-1.13 2-2.27 0-1.3-1.05-2.08-2.25-2.37V8.13c.27.1.49.27.6.48a.75.75 0 101.3-.74c-.39-.68-1.05-1.1-1.85-1.26v-.36z" />
                                </svg>
                                {{ __($badgeLabel) }}
                            </x-ui.badge>

                            <x-ui.card.header>
                                <x-ui.card.title class="text-lg">{{ __($plan['name']) }}</x-ui.card.title>

                                <div class="mt-2 flex items-baseline gap-2">
                                    <span class="text-3xl font-bold tracking-tight">{{ $priceLabel }}</span>
                                    @if (! empty($plan['priceNote']))
                                        <span class="text-sm text-muted-foreground">{{ __($plan['priceNote']) }}</span>
                                    @endif
                                </div>

                                @if (! empty($plan['description']))
                                    <p class="mt-4 text-sm text-muted-foreground">{{ __($plan['description']) }}</p>
                                @endif
                            </x-ui.card.header>

                            <x-ui.card.content class="flex flex-1 flex-col gap-6">
                                <x-ui.check-list class="flex-1">
                                    @foreach ($plan['features'] as $feature)
                                        <x-ui.check-list.item>{{ __($feature) }}</x-ui.check-list.item>
                                    @endforeach
                                </x-ui.check-list>
                            </x-ui.card.content>

                            <x-ui.card.footer class="flex flex-col gap-4">
                                <x-ui.button :href="$plan['href'] ?? '#'" variant="default" class="w-full">
                                    {{ __($plan['cta']) }}
                                </x-ui.button>

                                @if (! empty($trustNote))
                                    <p class="flex items-center justify-center gap-2 text-sm text-muted-foreground">
                                        <svg class="size-4 shrink-0" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                                            <path fill-rule="evenodd" d="M10 1a4 4 0 00-4 4v2H5.5A1.5 1.5 0 004 8.5v7A1.5 1.5 0 005.5 17h9a1.5 1.5 0 001.5-1.5v-7A1.5 1.5 0 0014.5 7H14V5a4 4 0 00-4-4zm2.5 6V5a2.5 2.5 0 00-5 0v2h5z" clip-rule="evenodd" />
                                        </svg>
                                        <span>{{ __($trustNote) }}</span>
                                    </p>
                                @endif
                            </x-ui.card.footer>
                        </x-ui.card>
                    </div>
                @else
                    {{-- Side plan: plain card. --}}
                    <x-ui.card class="flex h-full flex-col">
                        <x-ui.card.header>
                            <x-ui.card.title class="text-lg">{{ __($plan['name']) }}</x-ui.card.title>

                            <div class="mt-2 flex items-baseline gap-2">
                                <span class="text-3xl font-bold tracking-tight">{{ $priceLabel }}</span>
                                @if (! empty($plan['priceNote']))
                                    <span class="text-sm text-muted-foreground">{{ __($plan['priceNote']) }}</span>
                                @endif
                            </div>

                            @if (! empty($plan['description']))
                                <p class="mt-4 text-sm text-muted-foreground">{{ __($plan['description']) }}</p>
                            @endif
                        </x-ui.card.header>

                        <x-ui.card.content class="flex flex-1 flex-col gap-6">
                            <x-ui.check-list class="flex-1">
                                @foreach ($plan['features'] as $feature)
                                    <x-ui.check-list.item>{{ __($feature) }}</x-ui.check-list.item>
                                @endforeach
                            </x-ui.check-list>
                        </x-ui.card.content>

                        <x-ui.card.footer>
                            <x-ui.button :href="$plan['href'] ?? '#'" variant="outline" class="w-full">
                                {{ __($plan['cta']) }}
                            </x-ui.button>
                        </x-ui.card.footer>
                    </x-ui.card>
                @endif
            @endforeach
        </div>
    </x-ui.container>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/pricing-elevated

Registry contract

Install confidence

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

Registry dependencies

badge button card check-list container 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.

pricing-elevated.md
# Brok UI block: Pricing Elevated (`pricing-elevated`)

Asymmetric three-tier pricing with an elevated, framed center plan, a Best Value badge, check-bulleted features, a security/trust footer note, and a CTA per plan.

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/pricing-elevated
```

## Render it

```blade
<x-blocks.pricing-elevated />
```

## Props

- `heading` (string, default `Pricing that scales with you`) — Section headline.
- `subheading` (string, default `Simple, transparent plans. Upgrade, downgrade, or cancel whenever you need.`) — Supporting copy under the heading.
- `badge-label` (string, default `Best Value`) — Badge label shown on the featured plan.
- `trust-note` (string, default `Secure checkout, Cancel anytime`) — Trust note shown in the footer under the plan grid.
- `plans` (mixed|null, default `null`) — Array of plan cards ({name, price, priceNote, description, featured, cta, href, features}); null falls back to sample plans.

## Use when

- Presenting three tiers with an elevated, framed center plan and a Best Value badge for stronger visual asymmetry.
- Needing a security/trust footer note (e.g. secure checkout, cancel anytime) under the plan grid.

## Avoid when

- Wanting a gradient-bordered featured plan instead of a framed/elevated one; use pricing-gradient.

## Rules

- Render the installed block with `<x-blocks.pricing-elevated />` 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/pricing-elevated
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/pricing-elevated.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 three tiers with an elevated, framed center plan and a Best Value badge for stronger visual asymmetry.
  • Needing a security/trust footer note (e.g. secure checkout, cancel anytime) under the plan grid.

Avoid when

  • Wanting a gradient-bordered featured plan instead of a framed/elevated one; use pricing-gradient.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.
Anatomy
section heading elevated framed center plan best-value badge side plans feature checklist trust footer note cta per plan

Usage

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

resources/views/welcome.blade.php Blade
<x-blocks.pricing-elevated />

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/pricing-elevated.blade.php Blade
@props([
    'heading' => 'Pricing that scales with you',
    'subheading' => 'Simple, transparent plans. Upgrade, downgrade, or cancel whenever you need.',
    'badgeLabel' => 'Best Value',
    'trustNote' => 'Secure checkout, Cancel anytime',
    'plans' => null,
])

@php
    $plans ??= [
        [
            'name' => 'Hobby',
            'price' => '$0',
            'priceNote' => 'per month',
            'description' => 'For side projects and getting a feel for the platform.',
            'featured' => false,
            'cta' => 'Get started',
            'href' => '#',
            'features' => [
                '1 project',
                'Community support',
                'Basic components',
                '1 GB storage',
            ],
        ],
        [
            'name' => 'Pro',
            'price' => '$29',
            'priceNote' => 'per month',
            'description' => 'For growing teams shipping production apps every week.',
            'featured' => true,
            'cta' => 'Start free trial',
            'href' => '#',
            'features' => [
                'Unlimited projects',
                'Priority support',
                'All components & blocks',
                'Advanced analytics',
                '100 GB storage',
            ],
        ],
        [
            'name' => 'Enterprise',
            'price' => null,
            'customPricing' => 'Custom',
            'priceNote' => 'billed annually',
            'description' => 'For organisations that need control, scale, and security.',
            'featured' => false,
            'cta' => 'Contact sales',
            'href' => '#',
            'features' => [
                'Everything in Pro',
                'SSO & advanced roles',
                'Audit logs & SLA',
                'Dedicated support',
                'Unlimited storage',
            ],
        ],
    ];
@endphp

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

        <div class="mx-auto mt-12 grid max-w-md grid-cols-1 items-start gap-6 sm:max-w-none lg:grid-cols-3 lg:items-center">
            @foreach ($plans as $plan)
                @php
                    $featured = $plan['featured'] ?? false;
                    $priceLabel = $plan['customPricing'] ?? $plan['price'] ?? '';
                @endphp

                @if ($featured)
                    {{-- Featured plan: outer frame lifts the inner card for a floating, elevated look. --}}
                    <div class="rounded-md bg-muted/50 p-2 shadow-sm lg:-mt-4 lg:scale-105">
                        <x-ui.card class="relative flex h-full flex-col rounded-lg border bg-card shadow-lg">
                            <x-ui.badge
                                variant="success"
                                class="absolute -top-3 start-1/2 -translate-x-1/2 shadow-sm rtl:translate-x-1/2"
                            >
                                <svg class="size-4" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                                    <path d="M10 2a8 8 0 100 16 8 8 0 000-16zm.75 4.75a.75.75 0 00-1.5 0v.34c-1.16.23-2 1.13-2 2.28 0 1.27 1.02 2.06 2.25 2.36v1.78a1.1 1.1 0 01-.62-.5.75.75 0 10-1.3.75c.4.7 1.08 1.13 1.92 1.27v.49a.75.75 0 001.5 0v-.5c1.2-.24 2-1.13 2-2.27 0-1.3-1.05-2.08-2.25-2.37V8.13c.27.1.49.27.6.48a.75.75 0 101.3-.74c-.39-.68-1.05-1.1-1.85-1.26v-.36z" />
                                </svg>
                                {{ __($badgeLabel) }}
                            </x-ui.badge>

                            <x-ui.card.header>
                                <x-ui.card.title class="text-lg">{{ __($plan['name']) }}</x-ui.card.title>

                                <div class="mt-2 flex items-baseline gap-2">
                                    <span class="text-3xl font-bold tracking-tight">{{ $priceLabel }}</span>
                                    @if (! empty($plan['priceNote']))
                                        <span class="text-sm text-muted-foreground">{{ __($plan['priceNote']) }}</span>
                                    @endif
                                </div>

                                @if (! empty($plan['description']))
                                    <p class="mt-4 text-sm text-muted-foreground">{{ __($plan['description']) }}</p>
                                @endif
                            </x-ui.card.header>

                            <x-ui.card.content class="flex flex-1 flex-col gap-6">
                                <x-ui.check-list class="flex-1">
                                    @foreach ($plan['features'] as $feature)
                                        <x-ui.check-list.item>{{ __($feature) }}</x-ui.check-list.item>
                                    @endforeach
                                </x-ui.check-list>
                            </x-ui.card.content>

                            <x-ui.card.footer class="flex flex-col gap-4">
                                <x-ui.button :href="$plan['href'] ?? '#'" variant="default" class="w-full">
                                    {{ __($plan['cta']) }}
                                </x-ui.button>

                                @if (! empty($trustNote))
                                    <p class="flex items-center justify-center gap-2 text-sm text-muted-foreground">
                                        <svg class="size-4 shrink-0" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                                            <path fill-rule="evenodd" d="M10 1a4 4 0 00-4 4v2H5.5A1.5 1.5 0 004 8.5v7A1.5 1.5 0 005.5 17h9a1.5 1.5 0 001.5-1.5v-7A1.5 1.5 0 0014.5 7H14V5a4 4 0 00-4-4zm2.5 6V5a2.5 2.5 0 00-5 0v2h5z" clip-rule="evenodd" />
                                        </svg>
                                        <span>{{ __($trustNote) }}</span>
                                    </p>
                                @endif
                            </x-ui.card.footer>
                        </x-ui.card>
                    </div>
                @else
                    {{-- Side plan: plain card. --}}
                    <x-ui.card class="flex h-full flex-col">
                        <x-ui.card.header>
                            <x-ui.card.title class="text-lg">{{ __($plan['name']) }}</x-ui.card.title>

                            <div class="mt-2 flex items-baseline gap-2">
                                <span class="text-3xl font-bold tracking-tight">{{ $priceLabel }}</span>
                                @if (! empty($plan['priceNote']))
                                    <span class="text-sm text-muted-foreground">{{ __($plan['priceNote']) }}</span>
                                @endif
                            </div>

                            @if (! empty($plan['description']))
                                <p class="mt-4 text-sm text-muted-foreground">{{ __($plan['description']) }}</p>
                            @endif
                        </x-ui.card.header>

                        <x-ui.card.content class="flex flex-1 flex-col gap-6">
                            <x-ui.check-list class="flex-1">
                                @foreach ($plan['features'] as $feature)
                                    <x-ui.check-list.item>{{ __($feature) }}</x-ui.check-list.item>
                                @endforeach
                            </x-ui.check-list>
                        </x-ui.card.content>

                        <x-ui.card.footer>
                            <x-ui.button :href="$plan['href'] ?? '#'" variant="outline" class="w-full">
                                {{ __($plan['cta']) }}
                            </x-ui.button>
                        </x-ui.card.footer>
                    </x-ui.card>
                @endif
            @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.6
Status
Stable
License
open
Deprecation
Not deprecated
Contract
v1
Foundation
≥ 1.0.0