Price
Prices are used to display the price of a given product, discount and total values.
Import​
import { Price } from '@faststore/ui'
Usage​
62.5
Variants​
Installment​
62.5
Listing​
62.5
Savings​
62.5
Selling​
62.5
Spot​
62.5
Examples​
INTL Formatted to parts​
$62.50
INTL Formatted​
€62.50
Custom​
62,5 reais
Props​
Customization​
data-fs-price
data-variant
Formatter function example​
function customFormatter(price: number) {
const unformattedPrice = `${price}`
const formattedPrice = `${unformattedPrice.replace('.', ',')} reais`
return formattedPrice
},