@vtex/collection-badges

Collection Badges of a Product

Usage no npm install needed!

<script type="module">
  import vtexCollectionBadges from 'https://cdn.skypack.dev/@vtex/collection-badges';
</script>

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.