Pricing
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
@props([
'heading' => 'Plans for teams of every size',
'subheading' => 'Start free and scale as you grow. No hidden fees, cancel anytime.',
'plans' => null,
])
@php
$plans ??= [
[
'name' => 'Starter',
'price' => '$0',
'period' => '/mo',
'blurb' => 'For individuals getting their first project off the ground.',
'featured' => false,
'cta' => 'Get started',
'href' => '#',
'features' => [
['label' => '1 project', 'included' => true],
['label' => 'Community support', 'included' => true],
['label' => 'Basic components', 'included' => true],
['label' => 'Pro blocks', 'included' => false],
['label' => 'SSO & roles', 'included' => false],
],
],
[
'name' => 'Pro',
'price' => '$29',
'period' => '/mo',
'blurb' => 'For growing teams shipping production apps every week.',
'featured' => true,
'cta' => 'Start free trial',
'href' => '#',
'features' => [
['label' => 'Unlimited projects', 'included' => true],
['label' => 'Priority support', 'included' => true],
['label' => 'All components', 'included' => true],
['label' => 'Pro blocks', 'included' => true],
['label' => 'SSO & roles', 'included' => false],
],
],
[
'name' => 'Team',
'price' => '$99',
'period' => '/mo',
'blurb' => 'For organisations that need control, scale, and security.',
'featured' => false,
'cta' => 'Contact sales',
'href' => '#',
'features' => [
['label' => 'Everything in Pro', 'included' => true],
['label' => 'SSO & roles', 'included' => true],
['label' => 'Audit logs', 'included' => true],
['label' => 'Dedicated support', 'included' => true],
['label' => 'Custom SLA', 'included' => true],
],
],
];
@endphp
<x-ui.section 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-center gap-6 sm:max-w-none lg:grid-cols-3">
@foreach ($plans as $plan)
@php $featured = $plan['featured'] ?? false; @endphp
<x-ui.card @class([
'relative flex h-full flex-col',
'ring-2 ring-primary shadow-lg lg:scale-105' => $featured,
])>
@if ($featured)
<x-ui.badge class="absolute -top-3 start-1/2 -translate-x-1/2 shadow-sm rtl:translate-x-1/2">
{{ __('Most popular') }}
</x-ui.badge>
@endif
<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">{{ $plan['price'] }}</span>
<span class="text-sm text-muted-foreground">{{ __($plan['period'] ?? '') }}</span>
</div>
@if (! empty($plan['blurb']))
<p class="mt-4 text-sm text-muted-foreground">{{ __($plan['blurb']) }}</p>
@endif
</x-ui.card.header>
<x-ui.card.content class="flex flex-1 flex-col gap-6">
<x-ui.separator />
<x-ui.check-list class="flex-1">
@foreach ($plan['features'] as $feature)
<x-ui.check-list.item :included="$feature['included'] ?? true">{{ __($feature['label']) }}</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="$featured ? 'default' : 'outline'" class="w-full">
{{ __($plan['cta']) }}
</x-ui.button>
</x-ui.card.footer>
</x-ui.card>
@endforeach
</div>
</x-ui.container>
</x-ui.section>
Installation
php artisan ui:add blocks/pricing-cards
Registry contract
Install confidence
php artisan ui:add blocks/pricing-cards
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-cards.blade.php |
Registry dependencies
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.
# Brok UI block: Pricing Cards (`pricing-cards`)
Three-tier pricing with a centered heading and a grid of cards, the middle plan highlighted with a primary ring, Most popular badge, check-bulleted feature list, and a full-width CTA per card.
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-cards
```
## Render it
```blade
<x-blocks.pricing-cards />
```
## Props
- `heading` (string, default `Plans for teams of every size`) — Section headline.
- `subheading` (string, default `Start free and scale as you grow. No hidden fees, cancel anytime.`) — Supporting copy under the heading.
- `plans` (mixed|null, default `null`) — Array of plan cards ({name, price, period, blurb, featured, cta, href, features}); null falls back to sample plans.
## Use when
- Presenting three pricing tiers as a classic centered grid of cards with the middle plan highlighted by a primary ring and a Most popular badge.
- Wanting a plain pricing layout without gradients, tints, tabs, or a billing toggle.
## Avoid when
- Needing a billing toggle (pricing-simple or pricing-tinted), a feature-comparison table (comparison-plans-table), or a single-plan card (pricing-single).
## Rules
- Render the installed block with `<x-blocks.pricing-cards />` 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-cards
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/pricing-cards.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 pricing tiers as a classic centered grid of cards with the middle plan highlighted by a primary ring and a Most popular badge.
- Wanting a plain pricing layout without gradients, tints, tabs, or a billing toggle.
Avoid when
- Needing a billing toggle (pricing-simple or pricing-tinted), a feature-comparison table (comparison-plans-table), or a single-plan card (pricing-single).
Anti-patterns
- Do not replace semantic props with conflicting utility classes.
- Do not remove labels, focus styles, or state attributes.
- Anatomy
Usage
Render the block as a component, passing data where useful:
<x-blocks.pricing-cards />
Built from primitives
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.
@props([
'heading' => 'Plans for teams of every size',
'subheading' => 'Start free and scale as you grow. No hidden fees, cancel anytime.',
'plans' => null,
])
@php
$plans ??= [
[
'name' => 'Starter',
'price' => '$0',
'period' => '/mo',
'blurb' => 'For individuals getting their first project off the ground.',
'featured' => false,
'cta' => 'Get started',
'href' => '#',
'features' => [
['label' => '1 project', 'included' => true],
['label' => 'Community support', 'included' => true],
['label' => 'Basic components', 'included' => true],
['label' => 'Pro blocks', 'included' => false],
['label' => 'SSO & roles', 'included' => false],
],
],
[
'name' => 'Pro',
'price' => '$29',
'period' => '/mo',
'blurb' => 'For growing teams shipping production apps every week.',
'featured' => true,
'cta' => 'Start free trial',
'href' => '#',
'features' => [
['label' => 'Unlimited projects', 'included' => true],
['label' => 'Priority support', 'included' => true],
['label' => 'All components', 'included' => true],
['label' => 'Pro blocks', 'included' => true],
['label' => 'SSO & roles', 'included' => false],
],
],
[
'name' => 'Team',
'price' => '$99',
'period' => '/mo',
'blurb' => 'For organisations that need control, scale, and security.',
'featured' => false,
'cta' => 'Contact sales',
'href' => '#',
'features' => [
['label' => 'Everything in Pro', 'included' => true],
['label' => 'SSO & roles', 'included' => true],
['label' => 'Audit logs', 'included' => true],
['label' => 'Dedicated support', 'included' => true],
['label' => 'Custom SLA', 'included' => true],
],
],
];
@endphp
<x-ui.section 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-center gap-6 sm:max-w-none lg:grid-cols-3">
@foreach ($plans as $plan)
@php $featured = $plan['featured'] ?? false; @endphp
<x-ui.card @class([
'relative flex h-full flex-col',
'ring-2 ring-primary shadow-lg lg:scale-105' => $featured,
])>
@if ($featured)
<x-ui.badge class="absolute -top-3 start-1/2 -translate-x-1/2 shadow-sm rtl:translate-x-1/2">
{{ __('Most popular') }}
</x-ui.badge>
@endif
<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">{{ $plan['price'] }}</span>
<span class="text-sm text-muted-foreground">{{ __($plan['period'] ?? '') }}</span>
</div>
@if (! empty($plan['blurb']))
<p class="mt-4 text-sm text-muted-foreground">{{ __($plan['blurb']) }}</p>
@endif
</x-ui.card.header>
<x-ui.card.content class="flex flex-1 flex-col gap-6">
<x-ui.separator />
<x-ui.check-list class="flex-1">
@foreach ($plan['features'] as $feature)
<x-ui.check-list.item :included="$feature['included'] ?? true">{{ __($feature['label']) }}</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="$featured ? 'default' : 'outline'" class="w-full">
{{ __($plan['cta']) }}
</x-ui.button>
</x-ui.card.footer>
</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.6 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0