@vtex/collection-badges
v1.0.13
Published
Collection Badges of a Product
Downloads
16
Readme
Collection Badges
Description
React component that render a list of collection badges.
Installation
Into the folder that contains your package.json
file, run the following command on terminal:
$ npm install @vtex/collection-badges
Usage
import React from 'react'
import CollectionBadges from '@vtex/collection-badges'
class SampleUsage extends React.Component {
render() {
return (
<CollectionBadges collectionBadgesText={[ 'foo', 'bar' ]}>
<img src="" alt="">
</CollectionBadges>
)
}
}
And it will render an image with the list of collection badges located at the bottom.