Interface: ClusterCardProps
Defined in: components/ClusterCard.tsx:29
Properties
badgesComponent?
optionalbadgesComponent?:ComponentType<BadgesComponentProps>
Defined in: components/ClusterCard.tsx:149
children?
optionalchildren?:ReactNode
Defined in: components/ClusterCard.tsx:156
Compound mode opt-in. When provided, ClusterCard renders the compound subtree (using <ClusterCard.X> subcomponents) instead of the legacy monolithic layout. Default content per subcomponent matches the legacy render section-for-section.
className?
optionalclassName?:string
Defined in: components/ClusterCard.tsx:128
Extra CSS class applied to the root element.
cluster
cluster:
Cluster
Defined in: components/ClusterCard.tsx:33
The cluster object to display
columns?
optionalcolumns?:number
Defined in: components/ClusterCard.tsx:125
Number of grid columns — when 1 the card renders as a compact horizontal row.
configuration?
optionalconfiguration?:any
Defined in: components/ClusterCard.tsx:131
Configuration object passed to the component
currency?
optionalcurrency?:string
Defined in: components/ClusterCard.tsx:140
Currency symbol used when formatting the price. Falls back to PropellerInfra.currency, then '€'.
enableAddFavorite?
optionalenableAddFavorite?:boolean
Defined in: components/ClusterCard.tsx:98
Renders a heart-icon toggle button on the cluster image. Defaults to false.
favoriteComponent?
optionalfavoriteComponent?:ComponentType<FavoriteComponentProps>
Defined in: components/ClusterCard.tsx:150
imageComponent?
optionalimageComponent?:ComponentType<ImageComponentProps>
Defined in: components/ClusterCard.tsx:148
imageLabels?
optionalimageLabels?:string[]
Defined in: components/ClusterCard.tsx:86
Attribute codes/names to look up on the default product and display as
badge overlays on the image. Resolved against
defaultProduct.attributes.items[].attributeDescription.name.
Attributes with no matching value are silently omitted.
Example: ['new', 'sale']
includeTax?
optionalincludeTax?:boolean
Defined in: components/ClusterCard.tsx:134
Include tax in the price display
labels?
optionallabels?:Record<string,string>
Defined in: components/ClusterCard.tsx:122
Override any UI string. Available keys: addToFavorites, removeFromFavorites, viewCluster, inStock, lowStock, outOfStock
language?
optionallanguage?:string
Defined in: components/ClusterCard.tsx:137
Language code used to resolve localised names and slugs. Defaults to 'NL'.
onClusterClick?
optionalonClusterClick?: (cluster) =>void
Defined in: components/ClusterCard.tsx:113
Called when the cluster name, image, or "View cluster" button is clicked.
When provided, the default <a> navigation is prevented so the consumer
can use framework-specific routing (e.g. Next.js router.push).
Parameters
cluster
Cluster
Returns
void
onToggleFavorite?
optionalonToggleFavorite?: (cluster,isFavorite) =>void
Defined in: components/ClusterCard.tsx:104
Called whenever the favourite state is toggled.
The second argument indicates the new state: true = added, false = removed.
Parameters
cluster
Cluster
isFavorite
boolean
Returns
void
priceComponent?
optionalpriceComponent?:ComponentType<PriceComponentProps>
Defined in: components/ClusterCard.tsx:146
showAvailability?
optionalshowAvailability?:boolean
Defined in: components/ClusterCard.tsx:69
Show only the availability indicator (Available / Not available) inside ItemStock.
Only relevant when showStock is true.
Defaults to true.
showImage?
optionalshowImage?:boolean
Defined in: components/ClusterCard.tsx:44
Show the default product image. Defaults to true.
showManufacturer?
optionalshowManufacturer?:boolean
Defined in: components/ClusterCard.tsx:56
Show the default product manufacturer. Defaults to false.
showName?
optionalshowName?:boolean
Defined in: components/ClusterCard.tsx:38
Show the cluster name. Defaults to true.
showPrice?
optionalshowPrice?:boolean
Defined in: components/ClusterCard.tsx:41
When false, hides the price. Defaults to true.
showShortDescription?
optionalshowShortDescription?:boolean
Defined in: components/ClusterCard.tsx:47
Show the cluster short description. Defaults to false.
showSku?
optionalshowSku?:boolean
Defined in: components/ClusterCard.tsx:53
Show the SKU. Displays the cluster SKU; falls back to the default product SKU if the cluster SKU is empty. Defaults to true.
showStock?
optionalshowStock?:boolean
Defined in: components/ClusterCard.tsx:62
Show default product stock information (quantity badge).
Reads defaultProduct.inventory.totalQuantity. Defaults to true.
stockComponent?
optionalstockComponent?:ComponentType<StockComponentProps>
Defined in: components/ClusterCard.tsx:147
stockLabels?
optionalstockLabels?:Record<string,string>
Defined in: components/ClusterCard.tsx:75
Label overrides forwarded to the embedded ItemStock component. Keys: inStock, outOfStock, lowStock, available, notAvailable, pieces
textLabels?
optionaltextLabels?:string[]
Defined in: components/ClusterCard.tsx:93
Attribute codes/names to look up on the default product and display as
extra text rows below the cluster name. Resolved the same way as imageLabels.
Example: ['brand', 'color']