Skip to content

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

  • amount: the price (required)
  • compareAt: original price; shows a sale price when higher than amount
  • currency: 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} />
Sizes, prefix and other currencies

£24

From£68.50

Sale price£145Was£180

99 €

$1,250