Skip to main content

Price

Prices are used to display the price of a given product, discount and total values.

Import​

import { Price } from '@faststore/ui'

Usage​

Loading...

Variants​

Installment​

Loading...

Listing​

Loading...

Savings​

Loading...

Selling​

Loading...

Spot​

Loading...

Examples​

INTL Formatted to parts​

Loading...

INTL Formatted​

Loading...

Custom​

Loading...

Props​

Customization​

data-fs-price

data-variant

Formatter function example​

function customFormatter(price: number) {
const unformattedPrice = `${price}`
const formattedPrice = `${unformattedPrice.replace('.', ',')} reais`

return formattedPrice
},

Didn't find your answers? Ask the Community. For documentation suggestions, submit your feedback.

JOIN THE COMMUNITY