Przejdź do głównej zawartości

Interface: PriceDisplayProps

Properties​

className?​

optional className?: string

Wrapping element class.


compareAtClassName?​

optional compareAtClassName?: string

Class for the strikethrough compare-at portion.


compareAtPrice?​

optional compareAtPrice?: number

Original price in minor units before the discount. When provided AND strictly greater than price, renders as strikethrough next to the current price. Otherwise ignored.


currency​

currency: string

ISO 4217 currency code.


locale?​

optional locale?: string

BCP 47 locale tag ('pl-PL', 'en-US', …) forwarded to both prices. When omitted, the runtime default is used — pass it for deterministic output.


price​

price: number

Current price in minor units.


priceClassName?​

optional priceClassName?: string

Class for the current price portion.