Price
Price displays a currency in the IKEA price presentation brand format. This is the leading price display used for most price presentations at IKEA.
PriceVariant.Regular is the leading price used for most price presentations at IKEA. This price displayed can be combined
PriceVariant.Comparison are used alongside an instance of a leading price. They are typically smaller than the leading price and can compare things like non-member prices (Normal price) or a movement from a previous price (Price strikeout). The default behavior of PriceVariant.Comparison displays the Price strikeout style. To display the Normal price variation, you must provide PriceVariant.strikeout and PriceVariant.regularFontWeight as false.
The PriceVariant.BTI (Breath Taking Item) price display styling highlights the price in a BTI box. This styling can only be applied to the leading price variation.
Example of usage:
Parameters
Integer value for Price, will render as provided.
Decimal value for Price.
String used for currency.
Decimal sign for Price.
PriceSize to define the Price size.PriceSize.Small enforces a PriceSizeStyle.SingleSize for the price.
PriceVariant defines the Price style. The default value is PriceVariant.Regular.
CurrencyPosition indicates where currency will be displayed.
The price size style variations to be displayed. The default value is PriceSizeStyle.MixedSize.
Subscript label defined after decimals and currency.
Modifier to be applied to the Price.
AffixVerticalAlignment allow you to place decimals value aligned Top or Bottom (same baseline as price)
AffixVerticalAlignment allow you to place currency value aligned Top or Bottom (same baseline as price)
String to be used as a prefix for screen readers (Talkback) to describe the price.
String to be used as a suffix for screen readers (Talkback) to describe the price.
Optional space added between the currency and price digits.