Price
Formats a number with Intl.NumberFormat. Whole amounts drop the pence, so
68 reads as £68 and 68.5 as £68.50. When compareAt is higher than
amount, the price shows as a sale with the old price struck through, and
screen readers hear “Sale price” and “Was”.
Sale price£42Was£56
Options
Section titled “Options”amount: the price (required)compareAt: original price; shows a sale price when higher thanamountcurrency: ISO currency code (default"GBP")locale: formatting locale (default"en-GB")prefix: muted text before the price, such as “From”size:compact,regular(default),large
<Price amount={42} compareAt={56} />£24
From£68.50
Sale price£145Was£180
99 €
$1,250