Collection Badges
Warning
The Collection Badges block has been deprecated. Despite this, support for it is still granted.
Collection Badges
is a VTEX component that will render an image with the list of collection badges located at the bottom.
This component can be imported and used by any VTEX app.
Usage
You should follow the usage instruction in the main README.
To import it into your code:
_10import { CollectionBadges } from "vtex.store-components";
You can use it in your code like a React component with the JSX
tag: <CollectionBadges>
.
_10<CollectionBadges collectionBadgesText={[ 'foo', 'bar' ]}>_10 <img src="https://raw.githubusercontent.com/vtexdocs/dev-portal-content/main/docs/vtex-io/Store Framework Apps/deprecated/..." alt="...">_10</CollectionBadges>
Configuration
Prop name | Type | Description | Default Values |
---|---|---|---|
collectionBadgesText | string[] | An array of collection badges text | [] |
children | Node | Children components that should be rendered inside the collection badge item | undefined |
Customization
In order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on Using CSS Handles for store customization.
CSS Handles |
---|
collectionContainer |
item |