Components

Price

A formatted product price with optional struck-through compare-at and a discount badge.

php artisan blatui:add price
$29.00
<x-ui.price :amount="29.00" />

Sale

$29.00 was $39.00 save -26%
<x-ui.price :amount="29.00" :compare-at="39.00" />

Sizes

$29.00 was $39.00 save -26% $29.00 was $39.00 save -26% $29.00 was $39.00 save -26%
<div class="flex flex-col items-start gap-3">
    <x-ui.price :amount="29.00" :compare-at="39.00" size="sm" />
    <x-ui.price :amount="29.00" :compare-at="39.00" />
    <x-ui.price :amount="29.00" :compare-at="39.00" size="lg" />
</div>