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

Pricing

pricing-12

Three plan cards with icon, price, yearly note and an included-features list, under a left-aligned heading.

Open full screen

Installation

php artisan ui:add-block pricing-12

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

Components it includes

Usage

Every piece of content is a prop, so you can drive this section from a CMS. 'note' sits under the price (for example the yearly equivalent). Pass 'icon' => '<svg ...>' on a plan to replace the default logo tile.

<x-ui.blocks.pricing-12
    tagline="Pricing"
    heading="Plans that grow with you"
    description="Every plan includes a 14-day free trial."
    includes-label="What you get:"
    :plans="[
        [
            'name' => 'Starter',
            'price' => '$9',
            'period' => '/mo',
            'note' => 'or $90 yearly',
            'features' => ['3 projects', 'Email support'],
            'buttonLabel' => 'Start free',
            'buttonHref' => '/register',
        ],
    ]"
/>

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.',
    'includesLabel' => 'Includes:',
    'plans' => [
        [
            'name' => 'Basic plan',
            'price' => '$19',
            'period' => '/mo',
            'note' => 'or $199 yearly',
            'features' => array_fill(0, 3, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Business plan',
            'price' => '$29',
            'period' => '/mo',
            'note' => 'or $299 yearly',
            'features' => array_fill(0, 4, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Enterprise plan',
            'price' => '$49',
            'period' => '/mo',
            'note' => 'or $499 yearly',
            'features' => array_fill(0, 5, 'Feature text goes here'),
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
    ],
])