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-store-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