Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.77 KB

CollectionBadges.md

File metadata and controls

49 lines (35 loc) · 1.77 KB

Collection Badges

Description

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.

📢 Disclaimer: Don't fork this project, use, contribute, or open issue with your feature request.

Table of Contents

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="..." alt="...">
</CollectionBadges>

Configuration

Prop name Type Description Default Values
collectionBadgesText Array(String)! An array of collection badges text []
children Node! Children components that should be rendered inside the collection badge item -

Styles API

You should follow the Styles API instruction in the main README.

CSS Namespaces

Below, we describe the namespace that are defined in the CollectionBadges.

Class name Description Component Source
collectionContainer The collection badger main container index
item The collection badge item main container index