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

Pricing

pricing-09

Monthly/yearly switch (tabs) over two centred pricing cards, each with a price, a checked feature list and a full-width button.

Open full screen

Installation

php artisan ui:add-block pricing-09

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

Components it includes

Usage

Every piece of content is a prop, so you can drive this section from a CMS. periods labels the switch (key => label), and plans holds one list of plans per period key. A plan is ['name', 'price', 'period', 'features', 'buttonLabel', 'buttonHref']. The switch is the tabs component.

<x-ui.blocks.pricing-09
    heading="Simple pricing"
    :periods="['monthly' => 'Monthly', 'yearly' => 'Yearly (save 20%)']"
    :plans="[
        'monthly' => [
            ['name' => 'Solo', 'price' => '$9', 'period' => '/mo', 'features' => ['1 seat'], 'buttonHref' => '/register'],
            ['name' => 'Team', 'price' => '$29', 'period' => '/mo', 'features' => ['20 seats', 'SSO'], 'buttonHref' => '/register?plan=team'],
        ],
        'yearly' => [
            ['name' => 'Solo', 'price' => '$86', 'period' => '/yr', 'features' => ['1 seat'], 'buttonHref' => '/register?yearly=1'],
            ['name' => 'Team', 'price' => '$278', 'period' => '/yr', 'features' => ['20 seats', 'SSO'], 'buttonHref' => '/register?plan=team&yearly=1'],
        ],
    ]"
/>

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.',
    'periods' => ['monthly' => 'Monthly', 'yearly' => 'Yearly'],
    'plans' => [
        'monthly' => [
            [
                'name' => 'Basic plan',
                'price' => '$19',
                'period' => '/mo',
                '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',
                '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,
            ],
        ],
        'yearly' => [
            [
                'name' => 'Basic plan',
                'price' => '$190',
                'period' => '/yr',
                'features' => ['Feature text goes here', 'Feature text goes here', 'Feature text goes here'],
                'buttonLabel' => 'Get started',
                'buttonHref' => null,
            ],
            [
                'name' => 'Business plan',
                'price' => '$290',
                'period' => '/yr',
                '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,
            ],
        ],
    ],
])