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

Pricing

pricing-03

Four left-aligned pricing cards with an icon, price, yearly note, an 'Includes' feature list under a divider and a button.

Open full screen

Installation

php artisan ui:add-block pricing-03

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

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', 'note', 'features', 'buttonLabel', 'buttonHref', 'icon']. icon is an optional '<svg ...>' string; leave it out and the card shows the library mark.

<x-ui.blocks.pricing-03
    heading="Pick a plan"
    includes-label="Everything in the plan:"
    :plans="[
        [
            'name' => 'Starter',
            'price' => '$9',
            'period' => '/mo',
            'note' => 'or $90 yearly',
            'features' => ['3 seats', 'Email support'],
            'buttonHref' => '/register',
        ],
        [
            'name' => 'Team',
            'price' => '$29',
            'period' => '/mo',
            'note' => 'or $290 yearly',
            'features' => ['20 seats', 'Priority support', 'SSO'],
            '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.',
    'includesLabel' => 'Includes:',
    'plans' => [
        [
            'name' => 'Free plan',
            'price' => '$0',
            'period' => '/mo',
            'note' => 'or $0 yearly',
            'features' => ['Feature text goes here', 'Feature text goes here', 'Feature text goes here'],
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Basic plan',
            'price' => '$19',
            'period' => '/mo',
            'note' => 'or $199 yearly',
            'features' => ['Feature text goes here', 'Feature text goes here', 'Feature text goes here'],
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Business plan',
            'price' => '$29',
            'period' => '/mo',
            'note' => 'or $299 yearly',
            'features' => [
                'Feature text goes here',
                'Feature text goes here',
                'Feature text goes here',
                'Feature text goes here',
            ],
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
        [
            'name' => 'Enterprise plan',
            'price' => '$49',
            'period' => '/mo',
            'note' => 'or $499 yearly',
            'features' => [
                'Feature text goes here',
                'Feature text goes here',
                'Feature text goes here',
                'Feature text goes here',
                'Feature text goes here',
            ],
            'buttonLabel' => 'Get started',
            'buttonHref' => null,
        ],
    ],
])