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

Pricing

pricing-02

Two-plan comparison table: plan headers with price and button, then feature rows grouped by category with checks or values in bordered cells.

Open full screen

Installation

php artisan ui:add-block pricing-02

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-02 />.

Components it includes

Usage

Every piece of content is a prop, so you can drive this section from a CMS. A plan is ['name', 'price', 'period', 'description', 'buttonLabel', 'buttonHref']. Each feature row carries one value per plan, in plan order: true draws a check, false or null leaves the cell empty, and a string ('10', 'Unlimited') is printed as is.

<x-ui.blocks.pricing-02
    heading="Compare plans"
    :plans="[
        ['name' => 'Starter', 'price' => '$9', 'period' => 'Per month', 'buttonHref' => '/register'],
        ['name' => 'Team', 'price' => '$29', 'period' => 'Per month', 'buttonHref' => '/register?plan=team'],
    ]"
    :categories="[
        ['title' => 'Usage', 'features' => [
            ['label' => 'Seats', 'values' => ['3', '20']],
            ['label' => 'Custom domains', 'values' => [false, true]],
        ]],
    ]"
/>

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.',
    'plans' => [
        [
            'name' => 'Basic',
            'price' => '$19',
            'period' => 'Per month',
            'description' => 'Lorem ipsum dolor sit amet',
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Business',
            'price' => '$29',
            'period' => 'Per month',
            'description' => 'Lorem ipsum dolor sit amet',
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
    ],
    'categories' => [
        [
            'title' => 'Feature Category',
            'features' => [
                ['label' => 'Feature text goes here', 'values' => ['10', '25']],
                ['label' => 'Feature text goes here', 'values' => [true, true]],
                ['label' => 'Feature text goes here', 'values' => [true, true]],
                ['label' => 'Feature text goes here', 'values' => [false, true]],
            ],
        ],
        [
            'title' => 'Feature Category',
            'features' => [
                ['label' => 'Feature text goes here', 'values' => ['10', '25']],
                ['label' => 'Feature text goes here', 'values' => [true, true]],
                ['label' => 'Feature text goes here', 'values' => [true, true]],
                ['label' => 'Feature text goes here', 'values' => [false, true]],
            ],
        ],
        [
            'title' => 'Feature Category',
            'features' => [
                ['label' => 'Feature text goes here', 'values' => ['10', '25']],
                ['label' => 'Feature text goes here', 'values' => [true, true]],
                ['label' => 'Feature text goes here', 'values' => [true, true]],
                ['label' => 'Feature text goes here', 'values' => [false, true]],
            ],
        ],
    ],
    'includedLabel' => 'Included',
    'excludedLabel' => 'Not included',
])