@vtex/product-description

React component that provides the description of a product

Usage no npm install needed!

<script type="module">
  import vtexProductDescription from 'https://cdn.skypack.dev/@vtex/product-description';
</script>

README

Product Description

Description

React component that render a the description of a product.

Installation

Into this folder, run the following command on terminal:

$ npm install @vtex/product-description

Usage

import React from 'react'
import { ProductDescription } from '@vtex/product-description'

class SampleUsage extends React.Component {
  render() {
    return (
      <ProductDescription>
        Lorem Ipsum Dolum.
      </ProductDescription>
    )
  }
}

And it will render the description that is passed as a children component.