PriceModuleVariant

Sealed class representing the different variants of the Price Module component.

The Price Module can be displayed in different layouts and sizes depending on the use case:

  • Regular - A consolidated version for standard price display and PIP (Product Information Page)

  • List - Optimized for list views and PLP (Product List Page)

Inheritors

Types

Link copied to clipboard
data class List(val size: PriceModuleSizeList = PriceModuleSizeList.Small) : PriceModuleVariant

List variant for Price Module

Link copied to clipboard
data class Regular(val size: PriceModuleSizeRegular = PriceModuleSizeRegular.Medium, val placeholder: Boolean = false, val completePriceLabel: String? = null) : PriceModuleVariant

Regular variant for Price Module This variant is a consolidated version of the previous PriceModuleVariant.Compact, PriceModuleVariant.Inspirational and PriceModuleVariant.Informational.