Function: DefaultProductBadges()
DefaultProductBadges(
props):Element|null
Defined in: components/defaults/DefaultProductBadges.tsx:19
Default badges renderer for the extension API.
Standalone implementation of the BadgesComponentProps contract — looks at
the product/cluster attributes for an imageLabel attribute (case-
insensitive substring match via core-ui's collectAttributeValues) and
renders each value as a small badge pill.
The hardcoded imageLabel attribute name matches what ProductCard
exposes by default via its imageLabels prop. Consumers with a different
attribute taxonomy inject their own badgesComponent.
Parameters
props
BadgesComponentProps
Returns
Element | null