Documentation
Feedback
Guides

Deprecated
Collection Badges

{"base64":"  ","img":{"width":73,"height":20,"type":"svg","mime":"image/svg+xml","wUnits":"px","hUnits":"px","length":927,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-store-components-collectionbadges-0.png"}}

Warning

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:

import { CollectionBadges } from 'vtex.store-components'

You can use it in your code like a React component with the JSX tag: <CollectionBadges>.

<CollectionBadges collectionBadgesText={[ 'foo', 'bar' ]}> <img src="https://raw.githubusercontent.com/vtexdocs/dev-portal-content/main/docs/vtex-io/Store Framework Apps/deprecated/..." alt="..."> </CollectionBadges>

Configuration

Prop nameTypeDescriptionDefault Values
collectionBadgesTextstring[]An array of collection badges text[]
childrenNodeChildren components that should be rendered inside the collection badge itemundefined

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
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page