Skip to content
Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Pricing

pricing-10

Two plan cards with icon, price and a two-column feature list, plus Monthly / Yearly tabs beside a left-aligned heading.

Open full screen

Installation

php artisan ui:add-block pricing-10

A single command installs the block's Blade file and every component it depends on. Render it in your own layout as <x-ui.blocks.pricing-10 />.

Usage

Every piece of content is a prop, so you can drive this section from a CMS. Each plan carries a monthly price (price + period) and a yearly one (yearlyPrice + yearlyPeriod); the Monthly / Yearly tabs swap between them. Pass 'icon' => '<svg ...>' on a plan to replace the default logo tile.

<x-ui.blocks.pricing-10
    tagline="Pricing"
    heading="Simple plans for every team"
    description="Start free, upgrade when you need more seats."
    monthly-label="Monthly"
    yearly-label="Yearly"
    :plans="[
        [
            'name' => 'Starter',
            'description' => 'For side projects',
            'price' => '$9',
            'period' => '/mo',
            'yearlyPrice' => '$90',
            'yearlyPeriod' => '/yr',
            'features' => ['3 projects', 'Email support'],
            'buttonLabel' => 'Start free',
            'buttonHref' => '/register',
        ],
        [
            'name' => 'Team',
            'description' => 'For growing teams',
            'price' => '$29',
            'period' => '/mo',
            'yearlyPrice' => '$290',
            'yearlyPeriod' => '/yr',
            'features' => ['Unlimited projects', 'Priority support'],
            'buttonLabel' => 'Choose Team',
            'buttonHref' => '/register?plan=team',
        ],
    ]"
/>

Props

Every prop with its default. Pass any of them as attributes, using : to bind a PHP value.

@props([
    'tagline' => 'Tagline',
    'heading' => 'Pricing plan',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.',
    'monthlyLabel' => 'Monthly',
    'yearlyLabel' => 'Yearly',
    'includesLabel' => 'Includes:',
    'plans' => [
        [
            'name' => 'Basic plan',
            'description' => 'Lorem ipsum dolor sit amet',
            'price' => '$19',
            'period' => '/mo',
            'yearlyPrice' => '$199',
            'yearlyPeriod' => '/yr',
            'features' => array_fill(0, 6, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Business plan',
            'description' => 'Lorem ipsum dolor sit amet',
            'price' => '$29',
            'period' => '/mo',
            'yearlyPrice' => '$299',
            'yearlyPeriod' => '/yr',
            'features' => array_fill(0, 10, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
    ],
])