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

Pricing

pricing-05

Split layout: key features with icons on one side, a single plan card with price, a two-column feature list and a button on the other.

Open full screen

Installation

php artisan ui:add-block pricing-05

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

Components it includes

Usage

Every piece of content is a prop, so you can drive this section from a CMS. highlights is a list of ['title', 'description', 'icon'], where icon is an optional '<svg ...>' string (the library mark when left out). plan is a single ['name', 'price', 'period', 'description', 'features', 'buttonLabel', 'buttonHref'].

<x-ui.blocks.pricing-05
    heading="One plan, everything in it"
    :highlights="[
        ['title' => 'No seat limits', 'description' => 'Invite the whole team.'],
        ['title' => 'Cancel any time', 'description' => 'Monthly billing, no contract.'],
    ]"
    :plan="[
        'name' => 'Pro',
        'price' => '$19',
        'period' => '/mo',
        'description' => 'Billed monthly',
        'features' => ['Unlimited projects', 'Priority support', 'SSO'],
        'buttonLabel' => 'Start trial',
        '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.',
    'highlights' => [
        [
            'title' => 'Key feature heading',
            'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.',
        ],
        [
            'title' => 'Key feature heading',
            'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.',
        ],
        [
            'title' => 'Key feature heading',
            'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.',
        ],
    ],
    'includesLabel' => 'Includes:',
    'plan' => [
        'name' => 'Basic plan',
        'price' => '$19',
        'period' => '/mo',
        'description' => 'Lorem ipsum dolor sit amet',
        'features' => [
            'Feature text goes here',
            'Feature text goes here',
            'Feature text goes here',
            'Feature text goes here',
            'Feature text goes here',
            '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,
    ],
])